Skip to content

Commit

Permalink
connection: Cope properly with missing sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Aug 29, 2024
1 parent 1e31966 commit 92922ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connection.pike
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ void establish_hook_notification(string|int channelid, string hook, mapping|void
foreach (G->G->websocket_groups; string type; mapping groups)
foreach (groups; string group; array socks)
foreach (socks, object sock) {
mapping conn = sock->?query_id();
mapping conn = sock && sock->query_id();
if (!conn || !mappingp(conn->session)) continue;
sock->send_text(Standards.JSON.encode(([
"cmd": "*DC*",
Expand Down

0 comments on commit 92922ed

Please sign in to comment.