Skip to content

Commit b287490

Browse files
committedFeb 9, 2021
Fix crash in tab_online when cURL is disabled
1 parent 1d64e65 commit b287490

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎builtin/mainmenu/serverlistmgr.lua

+9
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ function serverlistmgr.sync()
4747
}}
4848
end
4949

50+
local serverlist_url = core.settings:get("serverlist_url") or ""
51+
if not core.get_http_api or serverlist_url == "" then
52+
serverlistmgr.servers = {{
53+
name = fgettext("Public server list is disabled"),
54+
description = ""
55+
}}
56+
return
57+
end
58+
5059
if public_downloading then
5160
return
5261
end

0 commit comments

Comments
 (0)
Please sign in to comment.