mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
send notice when a socket closes. This seems to be resulting in dups.
This commit is contained in:
parent
0134c96962
commit
ebcc30dd5f
1 changed files with 4 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue