Don't reset the master, display message if the peer disconnects

This commit is contained in:
simon.kagstrom 2009-11-10 05:46:21 +00:00
parent ac52ec73fe
commit 32874b305a

View File

@ -522,10 +522,12 @@ void C64::network_vblank()
js, this->TheSID) == false) js, this->TheSID) == false)
{ {
/* Disconnect or sending crap, remove this guy! */ /* Disconnect or sending crap, remove this guy! */
TheDisplay->display_status_string("PEER DISCONNECTED", 3);
delete remote; delete remote;
this->peer = NULL; this->peer = NULL;
if (this->network_connection_type == CLIENT)
this->Reset();
this->network_connection_type = NONE; this->network_connection_type = NONE;
this->Reset();
return; return;
} }
if (this->network_connection_type == CLIENT) if (this->network_connection_type == CLIENT)