Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4438 closed defect (fixed)

[PATCH] Hitting cancel while connecting to the lobby doesn't cancel request

Reported by: sbirmi Owned by: sbirmi
Priority: Should Have Milestone: Alpha 22
Component: Multiplayer lobby Keywords: patch
Cc: Patch:

Description (last modified by elexis)

This was discovered while investigating #3941 (see comment 6http://trac.wildfiregames.com/ticket/3941#comment:6). Repeating here for completeness:


In lobbyStartConnect(), as as soon as Engine.ConnectXmppClient?() returns, we render "Connecting..." for example. Now, control is resumed to the gui. I tried hitting "Cancel". The connect screen returns to page "pageWelcome". However,

  1. feedback.caption is not reset (so you see "Connecting..." appearing in the backend).
  2. also, looks like we probably (don't reset g_LobbyIsConnecting or something similar). We actually end up connecting to the lobby (the UI switches to the next page) still.

Note that this should also happen when we try to register (but I didn't test creating bogus accounts).

Attachments (5)

4438-lobby-cancel-fix-v1.patch (1.1 KB ) - added by sbirmi 7 years ago.
4438-lobby-cancel-fix-v1.2.patch (1.1 KB ) - added by sbirmi 7 years ago.
instead of just switch page, cancel pending xmpp request when hitting cancel
4438-lobby-cancel-fix-v2.patch (2.1 KB ) - added by sbirmi 7 years ago.
v1 description + reusing lobbyStop + adding name to programming.json
screenshot_01_welcome_screen_with_old_caption.png (198.2 KB ) - added by sbirmi 7 years ago.
(without the fix) if cancel is hit while registration is going on, we are switched to the welcome page without clearing caption and stopping the xmpp client
screenshot_02_later_redirected_to_registration_successful_page.png (203.7 KB ) - added by sbirmi 7 years ago.
(without the fix) .. and despite being on the welcome page, are later redirected to the registration-successful page

Download all attachments as: .zip

Change History (8)

by sbirmi, 7 years ago

by sbirmi, 7 years ago

instead of just switch page, cancel pending xmpp request when hitting cancel

comment:1 by sbirmi, 7 years ago

Keywords: rfc patch added
Summary: Hitting cancel while connecting to the lobby doesn't cancel request[PATCH] Hitting cancel while connecting to the lobby doesn't cancel request

by sbirmi, 7 years ago

v1 description + reusing lobbyStop + adding name to programming.json

by sbirmi, 7 years ago

(without the fix) if cancel is hit while registration is going on, we are switched to the welcome page without clearing caption and stopping the xmpp client

by sbirmi, 7 years ago

(without the fix) .. and despite being on the welcome page, are later redirected to the registration-successful page

comment:2 by elexis, 7 years ago

Resolution: fixed
Status: newclosed

In 19469:

Actually stop connecting to the lobby if the user cancelled the login.

Fixes #4438
Patch By: sbirmi

comment:3 by elexis, 7 years ago

Description: modified (diff)
Keywords: rfc removed
Milestone: Work In ProgressAlpha 22

Thanks for the patch!

Note: See TracTickets for help on using tickets.