3
0

Fixing the garbage collector related error.

This commit is contained in:
Karchnu 2020-11-07 01:32:12 +01:00
parent 5e5de4a9f1
commit 4d7a7d3742

View File

@ -117,6 +117,12 @@ class Relations < Array(Relation)
rescue e rescue e
Baguette::Log.error "(ignoring) closing the service socket: #{e}" Baguette::Log.error "(ignoring) closing the service socket: #{e}"
end end
begin
r.ws.close
Baguette::Log.warning "CLOSING THE WS"
rescue e
Baguette::Log.error "(ignoring) closing the ws: #{e}"
end
all_fd.select! {|v| v != r.fd_client && v != r.fd_service } all_fd.select! {|v| v != r.fd_client && v != r.fd_service }
end end