mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 17:16:22 +00:00
Allow /quit during TLS certificate verification prompt
This commit is contained in:
@@ -90,6 +90,7 @@ resource_presence_t saved_presence;
|
||||
char *saved_status;
|
||||
|
||||
static gboolean cont = TRUE;
|
||||
static gboolean force_quit = FALSE;
|
||||
|
||||
void
|
||||
prof_run(char *log_level, char *account_name)
|
||||
@@ -104,7 +105,7 @@ prof_run(char *log_level, char *account_name)
|
||||
saved_status = NULL;
|
||||
|
||||
char *line = NULL;
|
||||
while(cont) {
|
||||
while(cont && !force_quit) {
|
||||
log_stderr_handler();
|
||||
_check_autoaway();
|
||||
|
||||
@@ -127,6 +128,12 @@ prof_run(char *log_level, char *account_name)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
prof_set_quit(void)
|
||||
{
|
||||
force_quit = TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
prof_handle_idle(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user