diff options
author | Armin Weatherwax | 2010-05-28 18:11:00 +0200 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:26 -0500 |
commit | 66228f21415fa0e869a3882e4e2ff05e860a5e1b (patch) | |
tree | ea61ac55359b72baeb5b538ab45c0810a217a85f | |
parent | Add "Use server-side Windlight settings" to Preferences -> Advanced. (diff) | |
download | meta-impy-66228f21415fa0e869a3882e4e2ff05e860a5e1b.zip meta-impy-66228f21415fa0e869a3882e4e2ff05e860a5e1b.tar.gz meta-impy-66228f21415fa0e869a3882e4e2ff05e860a5e1b.tar.bz2 meta-impy-66228f21415fa0e869a3882e4e2ff05e860a5e1b.tar.xz |
fix: crash when sim crashes/disconnects
-rw-r--r-- | linden/indra/newview/llstatusbar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linden/indra/newview/llstatusbar.cpp b/linden/indra/newview/llstatusbar.cpp index 558cf42..4b90007 100644 --- a/linden/indra/newview/llstatusbar.cpp +++ b/linden/indra/newview/llstatusbar.cpp | |||
@@ -254,6 +254,9 @@ void LLStatusBar::draw() | |||
254 | // Per-frame updates of visibility | 254 | // Per-frame updates of visibility |
255 | void LLStatusBar::refresh() | 255 | void LLStatusBar::refresh() |
256 | { | 256 | { |
257 | if(gDisconnected) | ||
258 | return; //or crash if the sim crashes; because: already ~LLMenuBarGL() | ||
259 | |||
257 | // Adding Net Stat Meter back in | 260 | // Adding Net Stat Meter back in |
258 | F32 bwtotal = gViewerThrottle.getMaxBandwidth() / 1000.f; | 261 | F32 bwtotal = gViewerThrottle.getMaxBandwidth() / 1000.f; |
259 | mSGBandwidth->setMin(0.f); | 262 | mSGBandwidth->setMin(0.f); |