Merge pull request #128 from WebFreak001/fix-net-regression

remove refsLeft assert
This commit is contained in:
Sönke Ludwig 2019-01-23 21:22:55 +01:00 committed by GitHub
commit 177e761716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,10 +217,8 @@ 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)
bool refsLeft = eventDriver.sockets.releaseRef(sock); 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);