]> 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 17:44:56 +0000 (18:44 +0100)
commit526cd9fa6e5b89522c528d4a7f5f7b2cafb9095e
treef173229183e315b1a81f692ca6c12732179ad252
parenta4ebec667da0f849bcbf0be3fed1df3bca7d1db9
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