Skip to content

Commit

Permalink
Fix Adminwho delays and client crashing (#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy authored May 20, 2024
1 parent 7da607e commit a96b407
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/modules/admin/holder2.dm
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ GLOBAL_PROTECT(href_token)
return cached_feedback_link

if (!SSdbcore.IsConnected())
return FALSE
return null

var/datum/db_query/feedback_query = SSdbcore.NewQuery("SELECT feedback FROM [format_table_name("admin")] WHERE ckey = '[owner.ckey]'")

Expand All @@ -205,7 +205,8 @@ GLOBAL_PROTECT(href_token)

if(!feedback_query.NextRow())
qdel(feedback_query)
return FALSE // no feedback link exists
cached_feedback_link = NO_FEEDBACK_LINK // monkestation edit: fallback to prevent issues
return null // no feedback link exists

cached_feedback_link = feedback_query.item[1] || NO_FEEDBACK_LINK
qdel(feedback_query)
Expand Down

0 comments on commit a96b407

Please sign in to comment.