Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash in tab_online when cURL is disabled
  • Loading branch information
rubenwardy committed Feb 9, 2021
1 parent 1d64e65 commit b287490
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions builtin/mainmenu/serverlistmgr.lua
Expand Up @@ -47,6 +47,15 @@ function serverlistmgr.sync()
}}
end

local serverlist_url = core.settings:get("serverlist_url") or ""
if not core.get_http_api or serverlist_url == "" then
serverlistmgr.servers = {{
name = fgettext("Public server list is disabled"),
description = ""
}}
return
end

if public_downloading then
return
end
Expand Down

0 comments on commit b287490

Please sign in to comment.