From 786c2ed32ef789643f153af935bb1693239c1960 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Thu, 25 Jan 2018 15:47:42 +0100 Subject: [PATCH] Fix promise passing --- Sources/NIO/SocketChannel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }