diff --git a/websocket-gateway/lib/jam_websockets/router.rb b/websocket-gateway/lib/jam_websockets/router.rb index 769570f50..1ab5e5e0c 100644 --- a/websocket-gateway/lib/jam_websockets/router.rb +++ b/websocket-gateway/lib/jam_websockets/router.rb @@ -1355,7 +1355,7 @@ module JamWebsockets # it's possible that a client will not be represented in the database anymore, due to hard to trace/guess scenario # usually involve reconnects. Double-check that all clients in memory are actually in the database. if not, delete them from memory - @stored_ars = Ars.where(active: true).all + @stored_ars = Ars.where(active: true).where('ip is not NULL').where("ip != ''").all if @client_lookup.length == 0 return