mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
fix assert (but still leaking)
This commit is contained in:
parent
764180fc48
commit
79a897b428
1 changed files with 11 additions and 7 deletions
|
@ -1109,15 +1109,19 @@ static void
|
|||
curses_socket_acceptor( int listener, Acceptor func, CommonGlobals* cGlobals,
|
||||
void** XP_UNUSED(storage) )
|
||||
{
|
||||
CursesAppGlobals* globals = (CursesAppGlobals*)cGlobals;
|
||||
XP_ASSERT( !cGlobals->acceptor || (func == cGlobals->acceptor) );
|
||||
cGlobals->acceptor = func;
|
||||
globals->csInfo.server.serverSocket = listener;
|
||||
cursesListenOnSocket( globals, listener
|
||||
if ( -1 == listener ) {
|
||||
XP_LOGF( "%s: removal of listener not implemented!!!!!", __func__ );
|
||||
} else {
|
||||
CursesAppGlobals* globals = (CursesAppGlobals*)cGlobals;
|
||||
XP_ASSERT( !cGlobals->acceptor || (func == cGlobals->acceptor) );
|
||||
cGlobals->acceptor = func;
|
||||
globals->csInfo.server.serverSocket = listener;
|
||||
cursesListenOnSocket( globals, listener
|
||||
#ifdef USE_GLIBLOOP
|
||||
, fire_acceptor
|
||||
, fire_acceptor
|
||||
#endif
|
||||
);
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef USE_GLIBLOOP
|
||||
|
|
Loading…
Add table
Reference in a new issue