mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-12-11 16:05:58 +00:00
update UpdateURL() to delete server session when connection failed
This commit is contained in:
parent
94bcf10231
commit
ff8e7c3471
@ -8,7 +8,6 @@ function LoginFlow(startOver = false as boolean)
|
||||
startOver = not session.server.UpdateURL(serverUrl)
|
||||
if startOver
|
||||
print "Could not connect to previously saved server."
|
||||
session.server.Delete()
|
||||
end if
|
||||
else
|
||||
startOver = true
|
||||
|
@ -64,7 +64,13 @@ namespace session
|
||||
' validate parameters
|
||||
if value = "" then return false
|
||||
session.server.Update("url", value)
|
||||
return session.server.Populate()
|
||||
|
||||
success = session.server.Populate()
|
||||
if not success
|
||||
session.server.Delete()
|
||||
end if
|
||||
|
||||
return success
|
||||
end function
|
||||
|
||||
' Use the saved server url to populate the global server session array (m.global.session.server)
|
||||
|
Loading…
Reference in New Issue
Block a user