diff --git a/Sources/NIO/SocketChannel.swift b/Sources/NIO/SocketChannel.swift index f4bdb933a..87e62000f 100644 --- a/Sources/NIO/SocketChannel.swift +++ b/Sources/NIO/SocketChannel.swift @@ -983,7 +983,7 @@ final class ServerSocketChannel : BaseSocketChannel { promise?.succeed(result: res) } } - executeAndComplete(promise) { + executeAndComplete(p) { try socket.bind(to: address) try self.socket.listen(backlog: backlog) }