diff options
author | McCabe Maxsted | 2010-06-22 17:51:47 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-22 20:54:52 -0500 |
commit | a708176df8f451bad908e2eb8288e233b8d4177c (patch) | |
tree | bba71c748ed332fe79a8cfe24f946e8954822fcb | |
parent | Partially reverted cad41f1 and 65a5856 to help login issues. (diff) | |
download | meta-impy-a708176df8f451bad908e2eb8288e233b8d4177c.zip meta-impy-a708176df8f451bad908e2eb8288e233b8d4177c.tar.gz meta-impy-a708176df8f451bad908e2eb8288e233b8d4177c.tar.bz2 meta-impy-a708176df8f451bad908e2eb8288e233b8d4177c.tar.xz |
Fixed bug in connecting to region timer
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index a391669..4466fa1 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -2100,6 +2100,7 @@ bool idle_startup() | |||
2100 | 2100 | ||
2101 | // Drop out if we can't connect -- MC | 2101 | // Drop out if we can't connect -- MC |
2102 | connecting_region_timer.start(); | 2102 | connecting_region_timer.start(); |
2103 | connecting_region_timer.setTimerExpirySec(10.0f); | ||
2103 | LLStartUp::setStartupState( STATE_AGENT_WAIT ); // Go to STATE_AGENT_WAIT | 2104 | LLStartUp::setStartupState( STATE_AGENT_WAIT ); // Go to STATE_AGENT_WAIT |
2104 | 2105 | ||
2105 | timeout.reset(); | 2106 | timeout.reset(); |
@@ -2113,7 +2114,7 @@ bool idle_startup() | |||
2113 | if (STATE_AGENT_WAIT == LLStartUp::getStartupState()) | 2114 | if (STATE_AGENT_WAIT == LLStartUp::getStartupState()) |
2114 | { | 2115 | { |
2115 | LL_DEBUGS("AppInitStartupState") << "STATE_AGENT_WAIT" << LL_ENDL; | 2116 | LL_DEBUGS("AppInitStartupState") << "STATE_AGENT_WAIT" << LL_ENDL; |
2116 | if (connecting_region_timer.getElapsedTimeF32() > 10.0f) | 2117 | if (connecting_region_timer.hasExpired()) |
2117 | { | 2118 | { |
2118 | // Bounce back to the login screen -- MC | 2119 | // Bounce back to the login screen -- MC |
2119 | LL_WARNS("AppInit") << "Bad login - can't connect to this region for some reason" << LL_ENDL; | 2120 | LL_WARNS("AppInit") << "Bad login - can't connect to this region for some reason" << LL_ENDL; |
@@ -2124,6 +2125,7 @@ bool idle_startup() | |||
2124 | //this might be redundant | 2125 | //this might be redundant |
2125 | LLStartUp::setShouldAutoLogin(false); | 2126 | LLStartUp::setShouldAutoLogin(false); |
2126 | show_connect_box = true; | 2127 | show_connect_box = true; |
2128 | connecting_region_timer.stop(); | ||
2127 | connecting_region_timer.reset(); | 2129 | connecting_region_timer.reset(); |
2128 | } | 2130 | } |
2129 | 2131 | ||
@@ -2149,7 +2151,7 @@ bool idle_startup() | |||
2149 | if (gAgentMovementCompleted) | 2151 | if (gAgentMovementCompleted) |
2150 | { | 2152 | { |
2151 | LLStartUp::setStartupState( STATE_INVENTORY_SEND ); | 2153 | LLStartUp::setStartupState( STATE_INVENTORY_SEND ); |
2152 | connecting_region_timer.reset(); | 2154 | connecting_region_timer.stop(); |
2153 | } | 2155 | } |
2154 | 2156 | ||
2155 | return FALSE; | 2157 | return FALSE; |