Fix assert not compiling in releaseRef
This commit is contained in:
parent
9d6b34c73a
commit
4d4401c31f
|
@ -218,8 +218,10 @@ TCPConnection connectTCP(NetworkAddress addr, NetworkAddress bind_address = anyA
|
||||||
": timeout");
|
": timeout");
|
||||||
|
|
||||||
if (status != ConnectStatus.connected) {
|
if (status != ConnectStatus.connected) {
|
||||||
if (sock != SocketFD.invalid)
|
if (sock != SocketFD.invalid) {
|
||||||
assert(!eventDriver.sockets.releaseRef(sock));
|
bool refsLeft = eventDriver.sockets.releaseRef(sock);
|
||||||
|
assert(!refsLeft);
|
||||||
|
}
|
||||||
|
|
||||||
enforce(false, "Failed to connect to "~addr.toString()~": "~status.to!string);
|
enforce(false, "Failed to connect to "~addr.toString()~": "~status.to!string);
|
||||||
assert(false);
|
assert(false);
|
||||||
|
|
Loading…
Reference in a new issue