Properly destroy closed WebSocketHandles

This commit is contained in:
sukibaby
2024-12-17 09:02:53 -08:00
committed by teejusb
parent 29d6531a50
commit 4af78281cf
2 changed files with 24 additions and 3 deletions
+4 -1
View File
@@ -110,7 +110,8 @@ class WebSocketHandle
{
public:
WebSocketHandle() {};
~WebSocketHandle();
static int Collect(lua_State *L);
static int Close(lua_State *L);
static int Send(lua_State *L);
@@ -146,6 +147,8 @@ private:
static Preference<bool> httpEnabled;
static Preference<RString> httpAllowHosts;
std::vector<std::shared_ptr<WebSocketHandle>> webSocketHandles;
};
extern NetworkManager* NETWORK;