forked from KolibriOS/kolibrios
Liza 0.8a: closing socket after work
git-svn-id: svn://kolibrios.org@3437 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
b280840eb3
commit
34bc3ae6c1
@ -46,9 +46,9 @@ enum {
|
|||||||
#define WIN_H 440
|
#define WIN_H 440
|
||||||
#define WIN_MIN_W 500
|
#define WIN_MIN_W 500
|
||||||
#define WIN_MIN_H 380
|
#define WIN_MIN_H 380
|
||||||
#define LOGIN_HEADER "Login - Email client Liza 0.8"
|
#define LOGIN_HEADER "Login - Email client Liza 0.8a"
|
||||||
#define OPTIONS_HEADER "Options - Email client Liza 0.8"
|
#define OPTIONS_HEADER "Options - Email client Liza 0.8a"
|
||||||
#define MAILBOX_HEADER "Mail Box - Email client Liza 0.8"
|
#define MAILBOX_HEADER "Mail Box - Email client Liza 0.8a"
|
||||||
proc_info Form;
|
proc_info Form;
|
||||||
system_colors sc;
|
system_colors sc;
|
||||||
#define LBUMP 0xFFFfff
|
#define LBUMP 0xFFFfff
|
||||||
@ -147,6 +147,7 @@ void OpenMailDat()
|
|||||||
void SaveAndExit()
|
void SaveAndExit()
|
||||||
{
|
{
|
||||||
char write_data[512], pass_b64[256];
|
char write_data[512], pass_b64[256];
|
||||||
|
if (!CloseSocket(socket)) debug("An error occurred during closing of the socket");
|
||||||
strcpy(#write_data, #email_text);
|
strcpy(#write_data, #email_text);
|
||||||
strcat(#write_data, "\n");
|
strcat(#write_data, "\n");
|
||||||
base64_encode stdcall (#pass_text, #pass_b64, strlen(#pass_text));
|
base64_encode stdcall (#pass_text, #pass_b64, strlen(#pass_text));
|
||||||
|
@ -132,6 +132,7 @@ void MailBoxLoop()
|
|||||||
if (id==EXIT_MAIL)
|
if (id==EXIT_MAIL)
|
||||||
{
|
{
|
||||||
StopLoading();
|
StopLoading();
|
||||||
|
if (!CloseSocket(socket)) debug("An error occurred during closing of the socket");
|
||||||
LoginBoxLoop();
|
LoginBoxLoop();
|
||||||
}
|
}
|
||||||
if (id==CHANGE_CHARSET)
|
if (id==CHANGE_CHARSET)
|
||||||
|
Loading…
Reference in New Issue
Block a user