fix a socket leak in peer-msgs

This commit is contained in:
Charles Kerr 2008-01-19 03:30:45 +00:00
parent a771f34373
commit 3c6eeef439
1 changed files with 2 additions and 4 deletions

View File

@ -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