mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
send notice when a socket closes. This seems to be resulting in dups.
This commit is contained in:
parent
38764b3f73
commit
bb8a1e7588
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…
Add table
Reference in a new issue