Apply multiplayer crash on exit fix from Pigeon
This commit is contained in:
parent
b6cf140f98
commit
9e61446d12
1 changed files with 8 additions and 2 deletions
|
@ -219,13 +219,19 @@ bool FGMultiplay::process() {
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
bool FGMultiplay::close() {
|
bool FGMultiplay::close() {
|
||||||
|
|
||||||
|
FGMultiplayMgr *mgr = globals->get_multiplayer_mgr();
|
||||||
|
|
||||||
|
if (mgr == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (get_direction() == SG_IO_IN) {
|
if (get_direction() == SG_IO_IN) {
|
||||||
|
|
||||||
globals->get_multiplayer_mgr()->Close();
|
mgr->Close();
|
||||||
|
|
||||||
} else if (get_direction() == SG_IO_OUT) {
|
} else if (get_direction() == SG_IO_OUT) {
|
||||||
|
|
||||||
globals->get_multiplayer_mgr()->Close();
|
mgr->Close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue