fix a socket leak in peer-msgs
This commit is contained in:
parent
a771f34373
commit
3c6eeef439
|
@ -1644,12 +1644,10 @@ gotError( struct bufferevent * evbuf UNUSED, short what, void * vmsgs )
|
|||
{
|
||||
if( what & EVBUFFER_TIMEOUT )
|
||||
dbgmsg( vmsgs, "libevent got a timeout, what=%hd", what );
|
||||
|
||||
if( what & ( EVBUFFER_EOF | EVBUFFER_ERROR ) ) {
|
||||
if( what & ( EVBUFFER_EOF | EVBUFFER_ERROR ) )
|
||||
dbgmsg( vmsgs, "libevent got an error! what=%hd, errno=%d (%s)",
|
||||
what, errno, strerror(errno) );
|
||||
fireError( vmsgs, TR_ERROR );
|
||||
}
|
||||
fireError( vmsgs, TR_ERROR );
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue