send notice when a socket closes. This seems to be resulting in dups.

This commit is contained in:
ehouse 2005-09-04 20:37:42 +00:00
parent 0134c96962
commit ebcc30dd5f

View file

@ -422,6 +422,8 @@ CookieRef::handleEvents()
break;
case XW_ACTION_REMOVESOCKET:
notifyOthers( evt.u.rmsock.socket, XWRELAY_DISCONNECT_OTHER,
XWRELAY_ERROR_LOST_OTHER );
removeSocket( &evt );
break;
@ -668,7 +670,8 @@ CookieRef::_PrintCookieInfo( string& out )
out += "\n";
out += "ID: ";
char buf[64];
snprintf( buf, sizeof(buf), "%ld\n", GetCookieID() );
snprintf( buf, sizeof(buf), "%d\n", GetCookieID() );
out += buf;
snprintf( buf, sizeof(buf), "Bytes sent: %d\n", m_totalSent );