Skip to content

Commit a2f258c

Browse files
committed
Revert "Only load STOMP when we got a central"
This reverts commit cf79be8.
1 parent 658d8e4 commit a2f258c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lua/sa/central/server/ws.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ SA.REQUIRE("central.main")
55
local apiConfig = SA.Config.Load("api", true) or {}
66
apiConfig.centralUrl = apiConfig.centralUrl or "NONE"
77

8+
require("stomp")
9+
810
if SA.Central.Socket then
911
SA.Central.Socket:close()
1012
SA.Central.Socket = nil
@@ -58,10 +60,6 @@ ConnectCentral = function()
5860
return
5961
end
6062

61-
if not NewSTOMPSocket then
62-
require("stomp")
63-
end
64-
6563
ourIdent = SA.API.GetServerName()
6664
local ourKey = SA.API.GetServerToken()
6765

0 commit comments

Comments
 (0)