]> git.mxchange.org Git - flightgear.git/commit
Avoid crash and/or long delay on shutdown in METAR loader.
authorThorstenB <brehmt@gmail.com>
Sun, 13 Feb 2011 15:50:23 +0000 (16:50 +0100)
committerThorstenB <brehmt@gmail.com>
Sun, 13 Feb 2011 15:54:08 +0000 (16:54 +0100)
commitae320ca46c78cdb34c0cd730733dfb8ef3c737df
tree4144776f26970b332d35c868352292aa3b48849b
parentc7cccd8758e66c0d4ac71bd75709bae29f3322e4
Avoid crash and/or long delay on shutdown in METAR loader.
Catching loader thread on subsystem destruction is too late, since it
depends on other subsystems (which are destroyed earlier).
=> Need to stop & join thread during subsystem shutdown.
Also changed loader sleep logic - to avoid excessive delays (up to
30 seconds) on shutdown.
(Issues mostly happened when running offline with realwx enabled.)
src/Environment/realwx_ctrl.cxx