NSM: Clarify client X died message.

This commit is contained in:
Jonathan Moore Liles 2013-04-03 19:38:54 -07:00
parent 2c646deebf
commit acb38aca99
1 changed files with 5 additions and 2 deletions

View File

@ -302,7 +302,6 @@ handle_client_process_death ( int pid )
if ( c )
{
MESSAGE( "Client %s died.", c->name );
bool dead_because_we_said = false;
@ -312,6 +311,7 @@ handle_client_process_death ( int pid )
dead_because_we_said = true;
}
c->pending_command( COMMAND_NONE );
c->active = false;
@ -319,6 +319,7 @@ handle_client_process_death ( int pid )
if ( dead_because_we_said )
{
MESSAGE( "Client %s terminated because we told it to.", c->name );
if ( gui_is_active )
osc_server->send( gui_addr, "/nsm/gui/client/status", c->client_id, c->status = "removed" );
@ -328,6 +329,8 @@ handle_client_process_death ( int pid )
}
else
{
MESSAGE( "Client %s died unexpectedly.", c->name );
if ( gui_is_active )
osc_server->send( gui_addr, "/nsm/gui/client/status", c->client_id, c->status = "stopped" );
}