Skip to content

Commit

Permalink
retry on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Nov 7, 2023
1 parent 9934402 commit 1584096
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion code/modules/client/preferences_savefile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,14 @@
return FALSE

if(!S.Lock())
to_chat(owner, SPAN_BOLDWARNING("Failed to load your preferences file - it may be in use by another process. Please try again."))
to_chat(owner, SPAN_BOLDWARNING("Failed to load your preferences file. It may be in use by another process. Please try again."))

var/options = tgui_alert(owner, "Failed to load your preferences file. It may be in use by another process. Please try again.", "Failed to Load", list("Retry", "Disconnect"), timeout = FALSE)
if(options != "Retry")
qdel(owner, force = TRUE)
return FALSE

load_preferences()
return FALSE

S.cd = "/"
Expand Down

0 comments on commit 1584096

Please sign in to comment.