Skip to content

Commit

Permalink
Merge pull request #128 from WebFreak001/fix-net-regression
Browse files Browse the repository at this point in the history
remove refsLeft assert
  • Loading branch information
s-ludwig committed Jan 23, 2019
2 parents 6e04179 + 611505c commit 177e761
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/vibe/core/net.d
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,8 @@ TCPConnection connectTCP(NetworkAddress addr, NetworkAddress bind_address = anyA
": timeout");

if (status != ConnectStatus.connected) {
if (sock != SocketFD.invalid) {
bool refsLeft = eventDriver.sockets.releaseRef(sock);
assert(!refsLeft);
}
if (sock != SocketFD.invalid)
eventDriver.sockets.releaseRef(sock);

enforce(false, "Failed to connect to "~addr.toString()~": "~status.to!string);
assert(false);
Expand Down

0 comments on commit 177e761

Please sign in to comment.