mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
Fix promise passing
This commit is contained in:
1 parent
3d8965b114
commit
786c2ed32e
1 file changed
+1
-1
@@ -983,7 +983,7 @@ final class ServerSocketChannel : BaseSocketChannel<ServerSocket> {
|
||||
promise?.succeed(result: res)
|
||||
}
|
||||
}
|
||||
executeAndComplete(promise) {
|
||||
executeAndComplete(p) {
|
||||
try socket.bind(to: address)
|
||||
try self.socket.listen(backlog: backlog)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user