From 472321f1f577ea04ce24337b40efb055c6cc8b0b Mon Sep 17 00:00:00 2001 From: Benjamin Schaaf Date: Wed, 17 Jul 2019 23:12:59 +1000 Subject: [PATCH] Fix socket not being in a connected state after connectStream --- source/eventcore/drivers/posix/sockets.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/eventcore/drivers/posix/sockets.d b/source/eventcore/drivers/posix/sockets.d index 42c989a..0e5ac11 100644 --- a/source/eventcore/drivers/posix/sockets.d +++ b/source/eventcore/drivers/posix/sockets.d @@ -134,7 +134,7 @@ final class PosixEventDriverSockets(Loop : PosixEventLoop) : EventDriverSockets auto ret = () @trusted { return connect(cast(sock_t)sock, address.name, address.nameLen); } (); if (ret == 0) { - m_loop.m_fds[sock].specific.state = ConnectionState.connected; + m_loop.m_fds[sock].streamSocket.state = ConnectionState.connected; on_connect(sock, ConnectStatus.connected); } else { auto err = getSocketError();