Skip to content

Commit a498778

Browse files
committed
always wait for config load so autoConnect works on remote config
1 parent b6d4728 commit a498778

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,6 @@ const maybeEnterGame = () => {
982982
}
983983

984984
if (appQueryParams.ip || appQueryParams.proxy) {
985-
const waitAppConfigLoad = !appQueryParams.proxy
986985
const openServerAction = () => {
987986
if (appQueryParams.autoConnect && miscUiState.appConfig?.allowAutoConnect) {
988987
void connect({
@@ -1003,11 +1002,7 @@ const maybeEnterGame = () => {
10031002
}
10041003

10051004
// showModal({ reactType: 'empty' })
1006-
if (waitAppConfigLoad) {
1007-
return waitForConfigFsLoad(openServerAction)
1008-
}
1009-
openServerAction()
1010-
return
1005+
return waitForConfigFsLoad(openServerAction)
10111006
}
10121007

10131008
if (appQueryParams.connectPeer) {

0 commit comments

Comments
 (0)