remove refsLeft assert
It seems when running in a vibe-d app that the assert fails Even though I would like there to be a check, closing the vibe.d app afterwards shows no leaked handles so I think it's fine.
This commit is contained in:
parent
bee1c626cc
commit
611505c038
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue