return after disconnect ipc client and minor checks

This commit is contained in:
taiyu 2015-09-29 07:19:10 -07:00
parent fe3b85d65f
commit c963aa7ced
2 changed files with 3 additions and 3 deletions

View file

@ -253,7 +253,7 @@ void ipc_client_handle_command(struct ipc_client *client) {
default:
sway_log(L_INFO, "Unknown IPC command type %i", client->current_command);
ipc_client_disconnect(client);
break;
return;
}
client->payload_length = 0;