mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
Fixed crash for DCC receiver when resuming a file (bug #17885), fixed DCC error for sender when receiver cancels DCC (bug #17852)
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2006-09-23
|
||||
ChangeLog - 2006-09-30
|
||||
|
||||
|
||||
Version 0.2.1 (under dev!):
|
||||
* fixed crash for DCC receiver when resuming a file (bug #17885)
|
||||
* fixed DCC error for sender when receiver cancels DCC (bug #17852)
|
||||
* fixed random crash with /upgrade command (error when loading buffers)
|
||||
* fixed buffer search by server/channel: now if only channel is specified,
|
||||
a channel of another server can be found
|
||||
|
||||
+4
-3
@@ -1421,7 +1421,7 @@ dcc_file_send_child (t_irc_dcc *ptr_dcc)
|
||||
if ((num_read < 1) &&
|
||||
((num_read != -1) || (errno != EAGAIN)))
|
||||
{
|
||||
dcc_file_write_pipe (ptr_dcc, DCC_FAILED, DCC_ERROR_READ_LOCAL);
|
||||
dcc_file_write_pipe (ptr_dcc, DCC_FAILED, DCC_ERROR_SEND_BLOCK);
|
||||
return;
|
||||
}
|
||||
if (num_read == 4)
|
||||
@@ -1462,7 +1462,7 @@ dcc_file_send_child (t_irc_dcc *ptr_dcc)
|
||||
usleep (1000);
|
||||
else
|
||||
{
|
||||
dcc_file_write_pipe (ptr_dcc, DCC_FAILED, DCC_ERROR_READ_LOCAL);
|
||||
dcc_file_write_pipe (ptr_dcc, DCC_FAILED, DCC_ERROR_SEND_BLOCK);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -1830,7 +1830,8 @@ dcc_handle ()
|
||||
}
|
||||
if (ptr_dcc->type == DCC_FILE_RECV)
|
||||
{
|
||||
dcc_file_child_read (ptr_dcc);
|
||||
if (ptr_dcc->child_read != -1)
|
||||
dcc_file_child_read (ptr_dcc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -1,10 +1,12 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2006-09-23
|
||||
ChangeLog - 2006-09-30
|
||||
|
||||
|
||||
Version 0.2.1 (under dev!):
|
||||
* fixed crash for DCC receiver when resuming a file (bug #17885)
|
||||
* fixed DCC error for sender when receiver cancels DCC (bug #17852)
|
||||
* fixed random crash with /upgrade command (error when loading buffers)
|
||||
* fixed buffer search by server/channel: now if only channel is specified,
|
||||
a channel of another server can be found
|
||||
|
||||
@@ -1421,7 +1421,7 @@ dcc_file_send_child (t_irc_dcc *ptr_dcc)
|
||||
if ((num_read < 1) &&
|
||||
((num_read != -1) || (errno != EAGAIN)))
|
||||
{
|
||||
dcc_file_write_pipe (ptr_dcc, DCC_FAILED, DCC_ERROR_READ_LOCAL);
|
||||
dcc_file_write_pipe (ptr_dcc, DCC_FAILED, DCC_ERROR_SEND_BLOCK);
|
||||
return;
|
||||
}
|
||||
if (num_read == 4)
|
||||
@@ -1462,7 +1462,7 @@ dcc_file_send_child (t_irc_dcc *ptr_dcc)
|
||||
usleep (1000);
|
||||
else
|
||||
{
|
||||
dcc_file_write_pipe (ptr_dcc, DCC_FAILED, DCC_ERROR_READ_LOCAL);
|
||||
dcc_file_write_pipe (ptr_dcc, DCC_FAILED, DCC_ERROR_SEND_BLOCK);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -1830,7 +1830,8 @@ dcc_handle ()
|
||||
}
|
||||
if (ptr_dcc->type == DCC_FILE_RECV)
|
||||
{
|
||||
dcc_file_child_read (ptr_dcc);
|
||||
if (ptr_dcc->child_read != -1)
|
||||
dcc_file_child_read (ptr_dcc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user