Skip to content

Commit

Permalink
[fix] Ajax poll not properly timing out
Browse files Browse the repository at this point in the history
Faulty ownership check: typo
  • Loading branch information
ptaoussanis committed Jul 4, 2023
1 parent 1d15fe5 commit ad62f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/taoensso/sente.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@
(go
(<! (async/timeout ms))
(when-let [[sch udt-t1] (get-in @conns_ [:ajax uid client-id])]
(when (and (= identical? server-ch) (= udt-t1 udt-open))
(when (and (identical? sch server-ch) (= udt-t1 udt-open))
(interfaces/sch-send! server-ch websocket?
(pack packer :chsk/timeout))))))))

Expand Down

0 comments on commit ad62f1e

Please sign in to comment.