Avoid a warning on startup

- duplicate inits are benign, so don’t warn
This commit is contained in:
James Turner 2015-06-07 17:49:04 +02:00
parent 1378511c13
commit b91d1a3f6a

View File

@ -58,8 +58,11 @@ void SGEventMgr::unbind()
void SGEventMgr::init() void SGEventMgr::init()
{ {
if (_inited) { 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; _inited = true;
} }