mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-13 07:05:12 +01:00
Don't exit on marshall error
This commit is contained in:
parent
1dca5880c9
commit
64b200cafd
@ -720,7 +720,6 @@ bool Network::MarshalData(NetworkUpdate *p)
|
||||
/* Unknown data... */
|
||||
fprintf(stderr, "Got unknown data %d while marshalling. Something is wrong\n",
|
||||
p->type);
|
||||
exit(0); // FIXME! TMP!!
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1291,6 +1290,8 @@ network_connection_error_t Network::WaitForBandWidthReply()
|
||||
|
||||
void Network::Disconnect()
|
||||
{
|
||||
this->ResetNetworkUpdate();
|
||||
|
||||
NetworkUpdate *disconnect = InitNetworkUpdate(this->cur_ud, DISCONNECT,
|
||||
sizeof(NetworkUpdate));
|
||||
|
||||
@ -1298,6 +1299,8 @@ void Network::Disconnect()
|
||||
this->AddNetworkUpdate(disconnect);
|
||||
this->SendServerUpdate();
|
||||
this->SendPeerUpdate();
|
||||
|
||||
TheC64->network_connection_type = NONE;
|
||||
}
|
||||
|
||||
bool Network::networking_started = false;
|
||||
|
Loading…
Reference in New Issue
Block a user