fixed bugged when downloading bigger files than 65kb from the WiiU

This commit is contained in:
dimok789 2016-03-25 09:49:44 +01:00
parent 2b38c8b303
commit 7459f49168

View File

@ -824,8 +824,8 @@ static void process_data_events(client_t *client) {
} else { } else {
result = client->data_callback(client->data_socket, client->data_connection_callback_arg); result = client->data_callback(client->data_socket, client->data_connection_callback_arg);
} }
// stupid mess up in nintys code EAGAIN is sometimes -1 (recv, should be -11) and sometimes -11 (send)
if (result <= 0 && result != -EAGAIN) { if (result <= 0 && result != -EAGAIN && result != -11) {
cleanup_data_resources(client); cleanup_data_resources(client);
if (result < 0) { if (result < 0) {
result = write_reply(client, 520, "Closing data connection, error occurred during transfer."); result = write_reply(client, 520, "Closing data connection, error occurred during transfer.");