Fixing the garbage collector related error.

master
Karchnu 2020-11-07 01:32:12 +01:00
parent 5e5de4a9f1
commit 4d7a7d3742
1 changed files with 6 additions and 0 deletions

View File

@ -117,6 +117,12 @@ class Relations < Array(Relation)
rescue e
Baguette::Log.error "(ignoring) closing the service socket: #{e}"
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 }
end