degesch: fix QUIT message on C-c
This commit is contained in:
parent
1bbfcbe993
commit
00b91976b0
|
@ -6074,11 +6074,11 @@ on_signal_pipe_readable (const struct pollfd *fd, struct app_context *ctx)
|
||||||
// TODO: multiserver
|
// TODO: multiserver
|
||||||
struct server *s = &ctx->server;
|
struct server *s = &ctx->server;
|
||||||
// TODO: a faster timer for quitting
|
// TODO: a faster timer for quitting
|
||||||
|
// XXX: why do we do this? Just to reset the reconnect timer?
|
||||||
irc_reset_connection_timeouts (s);
|
irc_reset_connection_timeouts (s);
|
||||||
|
|
||||||
// FIXME: use a normal quit message
|
|
||||||
if (irc_is_connected (s))
|
if (irc_is_connected (s))
|
||||||
irc_send (s, "QUIT :Terminated by signal");
|
irc_initiate_disconnect (s, NULL);
|
||||||
initiate_quit (ctx);
|
initiate_quit (ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue