diff options
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 16 |
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 | { |