Fix crash on exit when FGCom is not being used.
This commit is contained in:
parent
7827e28ff3
commit
206053722e
1 changed files with 4 additions and 0 deletions
|
@ -330,6 +330,10 @@ void FGCom::update(double dt)
|
||||||
|
|
||||||
void FGCom::shutdown()
|
void FGCom::shutdown()
|
||||||
{
|
{
|
||||||
|
if( !_enabled ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SG_LOG( SG_IO, SG_INFO, "FGCom shutdown()" );
|
SG_LOG( SG_IO, SG_INFO, "FGCom shutdown()" );
|
||||||
_enabled = false;
|
_enabled = false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue