summaryrefslogtreecommitdiff
path: root/vchat-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'vchat-client.c')
-rw-r--r--vchat-client.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/vchat-client.c b/vchat-client.c
index a22df94..92d1905 100644
--- a/vchat-client.c
+++ b/vchat-client.c
@@ -343,8 +343,13 @@ void cleanup(int signal) {
343 /* inform user if we where killed by signal */ 343 /* inform user if we where killed by signal */
344 if (signal > 1) { 344 if (signal > 1) {
345 fprintf(stderr, "vchat-client: terminated with signal %d.\n", signal); 345 fprintf(stderr, "vchat-client: terminated with signal %d.\n", signal);
346 } else if (errstr[0]) 346 if (!loggedin)
347 dumpconnect();
348 } else if (errstr[0]) {
347 fputs(errstr, stderr); 349 fputs(errstr, stderr);
350 if (!loggedin)
351 dumpconnect();
352 }
348 /* end of story */ 353 /* end of story */
349 exit(0); 354 exit(0);
350} 355}