remote: Fix not being able to cancel in connecting state (#46789)

Release Notes:

- Fixed being unable to cancel remote connections while still connecting
to the remote server
f1fd0ab529Lukas Wirth committed on 1/14/2026, 11:49:21 AM· committed by GitHubparent55a7a93
4 files changedLine totals unavailable