mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +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,6 +1109,9 @@ static void
|
||||||
curses_socket_acceptor( int listener, Acceptor func, CommonGlobals* cGlobals,
|
curses_socket_acceptor( int listener, Acceptor func, CommonGlobals* cGlobals,
|
||||||
void** XP_UNUSED(storage) )
|
void** XP_UNUSED(storage) )
|
||||||
{
|
{
|
||||||
|
if ( -1 == listener ) {
|
||||||
|
XP_LOGF( "%s: removal of listener not implemented!!!!!", __func__ );
|
||||||
|
} else {
|
||||||
CursesAppGlobals* globals = (CursesAppGlobals*)cGlobals;
|
CursesAppGlobals* globals = (CursesAppGlobals*)cGlobals;
|
||||||
XP_ASSERT( !cGlobals->acceptor || (func == cGlobals->acceptor) );
|
XP_ASSERT( !cGlobals->acceptor || (func == cGlobals->acceptor) );
|
||||||
cGlobals->acceptor = func;
|
cGlobals->acceptor = func;
|
||||||
|
@ -1119,6 +1122,7 @@ curses_socket_acceptor( int listener, Acceptor func, CommonGlobals* cGlobals,
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef USE_GLIBLOOP
|
#ifndef USE_GLIBLOOP
|
||||||
#ifdef XWFEATURE_RELAY
|
#ifdef XWFEATURE_RELAY
|
||||||
|
|
Loading…
Add table
Reference in a new issue