diff options
author | andreykproductengine <akleshchev@productengine.com> | 2015-12-21 19:22:40 +0200 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2015-12-21 19:22:40 +0200 |
commit | 49fa9b5515e708083c85aaa2b1b522bc266944c4 (patch) | |
tree | 81053c34231e98de57005b74be314bd38362db36 /indra/newview/llviewermessage.cpp | |
parent | 7ce37f9910016f7225621df9e70dd2fd7c41725d (diff) |
MAINT-335 FIXED Avatar hangs in space after cancelling teleport
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rwxr-xr-x | indra/newview/llviewermessage.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 49886b5e4f..f3d0369da6 100755 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -3996,6 +3996,13 @@ void process_teleport_finish(LLMessageSystem* msg, void**) LL_WARNS("Messaging") << "Got teleport notification for wrong agent!" << LL_ENDL; return; } + + if (gAgent.getTeleportState() == LLAgent::TELEPORT_NONE) + { + // Server either ignored teleport cancel message or did not receive it in time. + // This message can't be ignored since teleport is complete at server side + gAgent.restoreCanceledTeleportRequest(); + } // Teleport is finished; it can't be cancelled now. gViewerWindow->setProgressCancelButtonVisible(FALSE); |