Skip to content

Add cancel join functionality#1065

Open
irice7 wants to merge 1 commit intosmartcmd:mainfrom
irice7:feat/cancel-join
Open

Add cancel join functionality#1065
irice7 wants to merge 1 commit intosmartcmd:mainfrom
irice7:feat/cancel-join

Conversation

@irice7
Copy link

@irice7 irice7 commented Mar 9, 2026

Description

Very minor QoL addition to allow cancelling while joining a server (came from the feature-suggestions Discord channel)

Changes

Previous Behavior

Previously when joining a server you have no way of stopping and getting out of the fullscreen progressbar.

Root Cause

If connecting to a server takes a long time you need to wait until the connection fails.

New Behavior

Adds the Cancel Join tooltip and behavior, allowing you to close the connection deliberately.

Fix Implementation

Uses a boolean (m_bCancelRequested) check in the loop that establishes the connection with the server within GameNetworkManager.cpp, where the main thread can set the boolean to true. Causing the connection to close.
Will also hide the tooltip when it is pressed.

AI Use Disclosure

AI was used as a rubber duck to fix a crash

Related Issues

None

image

Adds the Cancel Join tooltip to the "Connecting to host"
progress bar
@MCbabel
Copy link
Contributor

MCbabel commented Mar 9, 2026

that's a cool and really practical feature

@codeHusky
Copy link
Collaborator

Does this also resolve the failed connections freezing the whole game?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants