Skip to content

Commit

Permalink
fixed bugged when downloading bigger files than 65kb from the WiiU
Browse files Browse the repository at this point in the history
  • Loading branch information
dimok789 committed Mar 25, 2016
1 parent 2b38c8b commit 7459f49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,8 @@ static void process_data_events(client_t *client) {
} else {
result = client->data_callback(client->data_socket, client->data_connection_callback_arg);
}

if (result <= 0 && result != -EAGAIN) {
// stupid mess up in nintys code EAGAIN is sometimes -1 (recv, should be -11) and sometimes -11 (send)
if (result <= 0 && result != -EAGAIN && result != -11) {
cleanup_data_resources(client);
if (result < 0) {
result = write_reply(client, 520, "Closing data connection, error occurred during transfer.");
Expand Down

0 comments on commit 7459f49

Please sign in to comment.