mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2025-02-16 20:39:15 +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... */
|
/* Unknown data... */
|
||||||
fprintf(stderr, "Got unknown data %d while marshalling. Something is wrong\n",
|
fprintf(stderr, "Got unknown data %d while marshalling. Something is wrong\n",
|
||||||
p->type);
|
p->type);
|
||||||
exit(0); // FIXME! TMP!!
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1291,6 +1290,8 @@ network_connection_error_t Network::WaitForBandWidthReply()
|
|||||||
|
|
||||||
void Network::Disconnect()
|
void Network::Disconnect()
|
||||||
{
|
{
|
||||||
|
this->ResetNetworkUpdate();
|
||||||
|
|
||||||
NetworkUpdate *disconnect = InitNetworkUpdate(this->cur_ud, DISCONNECT,
|
NetworkUpdate *disconnect = InitNetworkUpdate(this->cur_ud, DISCONNECT,
|
||||||
sizeof(NetworkUpdate));
|
sizeof(NetworkUpdate));
|
||||||
|
|
||||||
@ -1298,6 +1299,8 @@ void Network::Disconnect()
|
|||||||
this->AddNetworkUpdate(disconnect);
|
this->AddNetworkUpdate(disconnect);
|
||||||
this->SendServerUpdate();
|
this->SendServerUpdate();
|
||||||
this->SendPeerUpdate();
|
this->SendPeerUpdate();
|
||||||
|
|
||||||
|
TheC64->network_connection_type = NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Network::networking_started = false;
|
bool Network::networking_started = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user