Allow /quit during TLS certificate verification prompt

This commit is contained in:
James Booth
2015-11-10 23:14:59 +00:00
parent 0bb596e14a
commit fcfdc175b6
3 changed files with 26 additions and 8 deletions

View File

@@ -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)
{