diff --git a/src/taoensso/sente.cljc b/src/taoensso/sente.cljc index 34bdace..81765a8 100644 --- a/src/taoensso/sente.cljc +++ b/src/taoensso/sente.cljc @@ -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)