Skip to content

Commit e8e7a18

Browse files
committed
Close the copas server properly by removing it from copas loop
1 parent 6dcf93c commit e8e7a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/websocket/server_copas.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ local listen = function(opts)
128128
end)
129129
local self = {}
130130
self.close = function(_,keep_clients)
131-
listener:close()
131+
copas.removeserver(listener)
132132
listener = nil
133133
if not keep_clients then
134134
for protocol,clients in pairs(clients) do

0 commit comments

Comments
 (0)