Fix promise passing

This commit is contained in:
Norman Maurer committed 2018-01-25 15:47:42 +01:00
1 parent 3d8965b114
commit 786c2ed32e
1 file changed
+1 -1
+1 -1
View File
@@ -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)
}