Fix execution queue in network handler

This commit is contained in:
Davide De Rosa 2019-03-20 18:01:57 +01:00
parent 6ac9d61827
commit 79509a1ea1
1 changed files with 4 additions and 2 deletions

View File

@ -1194,8 +1194,10 @@ public class SessionProxy {
completion()
return
}
link.writePackets(packets) { (error) in
completion()
link.writePackets(packets) { [weak self] (error) in
self?.queue.sync {
completion()
}
}
} catch {
completion()