mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +01:00
ipc-server: improve error message
This commit is contained in:
parent
7fea36750e
commit
476773dd32
1 changed files with 2 additions and 1 deletions
|
@ -923,7 +923,8 @@ bool ipc_send_reply(struct ipc_client *client, enum ipc_command_type payload_typ
|
||||||
}
|
}
|
||||||
|
|
||||||
if (client->write_buffer_size > 4e6) { // 4 MB
|
if (client->write_buffer_size > 4e6) { // 4 MB
|
||||||
sway_log(SWAY_ERROR, "Client write buffer too big, disconnecting client");
|
sway_log(SWAY_ERROR, "Client write buffer too big (%zu), disconnecting client",
|
||||||
|
client->write_buffer_size);
|
||||||
ipc_client_disconnect(client);
|
ipc_client_disconnect(client);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue