Avoid a warning on startup
- duplicate inits are benign, so don’t warn
This commit is contained in:
parent
1378511c13
commit
b91d1a3f6a
@ -58,8 +58,11 @@ void SGEventMgr::unbind()
|
||||
void SGEventMgr::init()
|
||||
{
|
||||
if (_inited) {
|
||||
SG_LOG(SG_GENERAL, SG_WARN, "duplicate init of SGEventMgr");
|
||||
// protected against duplicate calls here, in case
|
||||
// init ever does something more complex in the future.
|
||||
return;
|
||||
}
|
||||
|
||||
_inited = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user