(rpc) fix crash when quickly toggling rpc on/off reported by John_Clay
This commit is contained in:
parent
88e907383f
commit
26261e3bde
|
@ -112,7 +112,8 @@ rpcPulse( int socket UNUSED, short action UNUSED, void * vserver )
|
||||||
|
|
||||||
assert( server );
|
assert( server );
|
||||||
|
|
||||||
shttpd_poll( server->ctx, 1 );
|
if( server->ctx )
|
||||||
|
shttpd_poll( server->ctx, 1 );
|
||||||
|
|
||||||
/* set a timer for the next pulse */
|
/* set a timer for the next pulse */
|
||||||
if( EVBUFFER_LENGTH( server->in ) || EVBUFFER_LENGTH( server->out ) )
|
if( EVBUFFER_LENGTH( server->in ) || EVBUFFER_LENGTH( server->out ) )
|
||||||
|
|
|
@ -117,7 +117,7 @@ readFromPipe( int fd, short eventType, void * veh )
|
||||||
{
|
{
|
||||||
assert( 0 && "unhandled command type!" );
|
assert( 0 && "unhandled command type!" );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue