]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/event_mgr.cxx
Fix #1783: repeated error message on console
[simgear.git] / 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;
 }