diff --git a/libtransmission/net.c b/libtransmission/net.c index 919c64290..e5980d614 100644 --- a/libtransmission/net.c +++ b/libtransmission/net.c @@ -404,7 +404,7 @@ tr_netBindTCP( const tr_address * addr, tr_port port, tr_bool suppressMsgs ) if( !suppressMsgs ) tr_err( _( "Couldn't bind port %d on %s: %s" ), port, tr_ntop_non_ts( addr ), tr_strerror( err ) ); - tr_netClose( fd ); + EVUTIL_CLOSESOCKET( fd ); return -err; }