mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 16:53:10 +00:00
attempt to fix problems with timeouts when uploading campaigns
This commit is contained in:
parent
f3d7155ba3
commit
58003223e7
@ -1075,7 +1075,7 @@ void game_controller::upload_campaign(const std::string& campaign, network::conn
|
||||
std::cerr << "uploading campaign...\n";
|
||||
network::send_data(data,sock);
|
||||
|
||||
sock = network::receive_data(data,sock,5000);
|
||||
sock = gui::network_data_dialog(disp(),_("Awaiting response from server"),data,sock);
|
||||
if(!sock) {
|
||||
gui::show_error_message(disp(), _("Connection timed out"));
|
||||
} else if(data.child("error")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user