Liza 0.8a: closing socket after work

git-svn-id: svn://kolibrios.org@3437 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2013-04-01 00:25:22 +00:00
parent b280840eb3
commit 34bc3ae6c1
2 changed files with 5 additions and 3 deletions

View File

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

View File

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