mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
don't call removeSocket when none was added
This commit is contained in:
parent
8e5abb189b
commit
a52fc5a4fd
1 changed files with 2 additions and 2 deletions
|
@ -328,7 +328,8 @@ CookieRef::removeSocket( int socket )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logf( XW_LOGERROR, "%s: no socket %d to remove", __func__, socket );
|
logf( XW_LOGERROR, "%s: no socket %d to remove", __func__,
|
||||||
|
socket );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -555,7 +556,6 @@ CookieRef::handleEvents()
|
||||||
|
|
||||||
case XWA_SEND_NO_ROOM:
|
case XWA_SEND_NO_ROOM:
|
||||||
send_denied( &evt, XWRELAY_ERROR_NO_ROOM );
|
send_denied( &evt, XWRELAY_ERROR_NO_ROOM );
|
||||||
removeSocket( evt.u.rmsock.socket );
|
|
||||||
break;
|
break;
|
||||||
case XWA_SEND_DUP_ROOM:
|
case XWA_SEND_DUP_ROOM:
|
||||||
send_denied( &evt, XWRELAY_ERROR_DUP_ROOM );
|
send_denied( &evt, XWRELAY_ERROR_DUP_ROOM );
|
||||||
|
|
Loading…
Add table
Reference in a new issue