diff options
Diffstat (limited to 'vchat-client.c')
-rwxr-xr-x | vchat-client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vchat-client.c b/vchat-client.c index a2e298c..0e480be 100755 --- a/vchat-client.c +++ b/vchat-client.c | |||
@@ -355,8 +355,10 @@ cleanup (int signal) | |||
355 | /* clear userlist */ | 355 | /* clear userlist */ |
356 | ul_clear (); | 356 | ul_clear (); |
357 | /* close server connection */ | 357 | /* close server connection */ |
358 | if (serverfd > 0) | 358 | if (serverfd > 0) { |
359 | close (serverfd); | 359 | close (serverfd); |
360 | serverfd = -1; | ||
361 | } | ||
360 | /* inform user if we where killed by signal */ | 362 | /* inform user if we where killed by signal */ |
361 | if (signal > 1) | 363 | if (signal > 1) |
362 | { | 364 | { |