dont fail if server not found

This commit is contained in:
sevenrats 2023-09-06 21:02:07 -04:00
parent 0d4ed65b29
commit 0b7b2d594c
2 changed files with 2 additions and 3 deletions

View File

@ -253,7 +253,6 @@ function CreateServerGroup()
dialog.title = tr("Connecting to Server")
m.scene.dialog = dialog
serverUrl = inferServerUrl(screen.serverUrl)
if serverUrl = invalid then serverUrl = ""
'If this is a different server from what we know, reset username/password setting
if m.global.session.server.url <> serverUrl
set_setting("username", "")

View File

@ -198,12 +198,12 @@ function inferServerUrl(url as string)
handled += 1
if handled = reqs.count()
print("ALL HANDLED")
return invalid
return ""
end if
end while
print "TIMED OUT"
' we never actually get here but the linter can't tell
return invalid
return ""
end function
function urlCandidates(input as string)