Skip to content

Commit

Permalink
[#327 #326] Fix broken ws->ajax downgrade logic (@michaelcameron)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcameron authored and ptaoussanis committed Aug 22, 2018
1 parent 74dd620 commit 798fb11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/taoensso/sente.cljc
Expand Up @@ -1344,7 +1344,7 @@
(when-let [impl @impl_]
(when-let [ever-opened?_ (:ever-opened?_ impl)]
(when-not @ever-opened?_
(when (:last-error new-state)
(when (:last-ws-error new-state)
(when (compare-and-set! downgraded?_ false true)
(warnf "Permanently downgrading :auto chsk -> :ajax")
(-chsk-disconnect! impl :downgrading-ws-to-ajax)
Expand Down

0 comments on commit 798fb11

Please sign in to comment.