From 36b0413d32219a78d20c7bac1225e86b043cdd46 Mon Sep 17 00:00:00 2001 From: Boris-Barboris Date: Sat, 11 Nov 2017 15:44:13 +0000 Subject: [PATCH] remove cabblack invocation --- source/eventcore/driver.d | 3 +-- source/eventcore/drivers/posix/sockets.d | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/source/eventcore/driver.d b/source/eventcore/driver.d index 460f02e..c05181b 100644 --- a/source/eventcore/driver.d +++ b/source/eventcore/driver.d @@ -557,8 +557,7 @@ enum ConnectStatus { refused, timeout, bindFailure, - unknownError, - cancelled + unknownError } enum ConnectionState { diff --git a/source/eventcore/drivers/posix/sockets.d b/source/eventcore/drivers/posix/sockets.d index 9cd9e5f..f6611ac 100644 --- a/source/eventcore/drivers/posix/sockets.d +++ b/source/eventcore/drivers/posix/sockets.d @@ -129,13 +129,10 @@ final class PosixEventDriverSockets(Loop : PosixEventLoop) : EventDriverSockets assert(state == ConnectionState.connecting, "Unable to cancel connect on the socket that is not in connecting state"); state = ConnectionState.closed; - auto cb = connectCallback; connectCallback = null; m_loop.clearFD(sock); m_loop.unregisterFD(sock, EventMask.read|EventMask.write|EventMask.status); closeSocket(cast(sock_t)sock.value); - if (cb) - cb(StreamSocketFD.invalid, ConnectStatus.cancelled); } }