aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-05-24 23:36:24 -0700
committerJacek Antonelli2010-06-19 02:43:39 -0500
commite48a9589f5c48d79e67dd7d05a948a23f0cfc5a6 (patch)
treefbdb35b6adfbe47b8888328975539b5fb527bfae
parentupdate glib and gtk to Debian Lenny 32bit friendly(er) builds. (diff)
downloadmeta-impy-e48a9589f5c48d79e67dd7d05a948a23f0cfc5a6.zip
meta-impy-e48a9589f5c48d79e67dd7d05a948a23f0cfc5a6.tar.gz
meta-impy-e48a9589f5c48d79e67dd7d05a948a23f0cfc5a6.tar.bz2
meta-impy-e48a9589f5c48d79e67dd7d05a948a23f0cfc5a6.tar.xz
Automatically try logging in again if 'Login Failed. You appear to be already logged in' error happens on OpenSim
-rw-r--r--linden/indra/newview/llstartup.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index 4e8da34..dc32b9d 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -1244,6 +1244,7 @@ bool idle_startup()
1244 LL_DEBUGS("AppInitStartupState") << "STATE_LOGIN_PROCESS_RESPONSE" << LL_ENDL; 1244 LL_DEBUGS("AppInitStartupState") << "STATE_LOGIN_PROCESS_RESPONSE" << LL_ENDL;
1245 std::ostringstream emsg; 1245 std::ostringstream emsg;
1246 bool quit = false; 1246 bool quit = false;
1247 static bool presence_retry = true;
1247 std::string login_response; 1248 std::string login_response;
1248 std::string reason_response; 1249 std::string reason_response;
1249 std::string message_response; 1250 std::string message_response;
@@ -1368,6 +1369,19 @@ bool idle_startup()
1368 return false; 1369 return false;
1369 } 1370 }
1370 } 1371 }
1372 // The "You appear to be already logged in, wait 5 minutes" message
1373 // Only do this once per each login button press -- MC
1374 if (presence_retry && (reason_response == "presence"))
1375 {
1376 // Only do this on OS as SL will lock us out -- MC
1377 if (gHippoGridManager->getConnectedGrid()->isOpenSimulator() && show_connect_box)
1378 {
1379 LL_INFOS("AppInit") << "Login Failed. " << message_response << " Retrying now." << LL_ENDL;
1380 LLStartUp::setStartupState( STATE_LOGIN_AUTH_INIT );
1381 presence_retry = false;
1382 return false;
1383 }
1384 }
1371 } 1385 }
1372 break; 1386 break;
1373 case LLUserAuth::E_COULDNT_RESOLVE_HOST: 1387 case LLUserAuth::E_COULDNT_RESOLVE_HOST:
@@ -1392,6 +1406,8 @@ bool idle_startup()
1392 break; 1406 break;
1393 } 1407 }
1394 1408
1409 presence_retry = true;
1410
1395 // Version update and we're not showing the dialog 1411 // Version update and we're not showing the dialog
1396 if(quit) 1412 if(quit)
1397 { 1413 {