1
0
Fork 0

Apply multiplayer crash on exit fix from Pigeon

This commit is contained in:
frohlich 2006-04-23 09:03:21 +00:00
parent b6cf140f98
commit 9e61446d12

View file

@ -219,13 +219,19 @@ bool FGMultiplay::process() {
******************************************************************/
bool FGMultiplay::close() {
FGMultiplayMgr *mgr = globals->get_multiplayer_mgr();
if (mgr == 0) {
return false;
}
if (get_direction() == SG_IO_IN) {
globals->get_multiplayer_mgr()->Close();
mgr->Close();
} else if (get_direction() == SG_IO_OUT) {
globals->get_multiplayer_mgr()->Close();
mgr->Close();
}