From 34bc3ae6c1ae0988546d60c940ae0867d414d5a1 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 1 Apr 2013 00:25:22 +0000 Subject: [PATCH] Liza 0.8a: closing socket after work git-svn-id: svn://kolibrios.org@3437 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/liza/liza.c | 7 ++++--- programs/cmm/liza/mail_box.c | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/programs/cmm/liza/liza.c b/programs/cmm/liza/liza.c index b2234d7f72..088fd5d358 100644 --- a/programs/cmm/liza/liza.c +++ b/programs/cmm/liza/liza.c @@ -46,9 +46,9 @@ enum { #define WIN_H 440 #define WIN_MIN_W 500 #define WIN_MIN_H 380 -#define LOGIN_HEADER "Login - Email client Liza 0.8" -#define OPTIONS_HEADER "Options - Email client Liza 0.8" -#define MAILBOX_HEADER "Mail Box - Email client Liza 0.8" +#define LOGIN_HEADER "Login - Email client Liza 0.8a" +#define OPTIONS_HEADER "Options - Email client Liza 0.8a" +#define MAILBOX_HEADER "Mail Box - Email client Liza 0.8a" proc_info Form; system_colors sc; #define LBUMP 0xFFFfff @@ -147,6 +147,7 @@ void OpenMailDat() void SaveAndExit() { char write_data[512], pass_b64[256]; + if (!CloseSocket(socket)) debug("An error occurred during closing of the socket"); strcpy(#write_data, #email_text); strcat(#write_data, "\n"); base64_encode stdcall (#pass_text, #pass_b64, strlen(#pass_text)); diff --git a/programs/cmm/liza/mail_box.c b/programs/cmm/liza/mail_box.c index 7f1605ef94..0cac48e51c 100644 --- a/programs/cmm/liza/mail_box.c +++ b/programs/cmm/liza/mail_box.c @@ -132,6 +132,7 @@ void MailBoxLoop() if (id==EXIT_MAIL) { StopLoading(); + if (!CloseSocket(socket)) debug("An error occurred during closing of the socket"); LoginBoxLoop(); } if (id==CHANGE_CHARSET)