]> git.mxchange.org Git - simgear.git/commitdiff
Avoid a warning on startup
authorJames Turner <zakalawe@mac.com>
Sun, 7 Jun 2015 15:49:04 +0000 (17:49 +0200)
committerJames Turner <zakalawe@mac.com>
Sun, 7 Jun 2015 15:49:04 +0000 (17:49 +0200)
- duplicate inits are benign, so don’t warn

simgear/structure/event_mgr.cxx

index 503bd974e7f9c551604c958787e5d191a9b09d0a..2e4f7b780b1acb6d00a08790c915ab97522643fd 100644 (file)
@@ -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;
 }