fix(rtc): fix handle-remote-genernal-exception

pull/11055/head
rcmerci 2024-03-13 22:04:14 +08:00
parent de7ada4124
commit 2f3f1853fd
1 changed files with 5 additions and 2 deletions

View File

@ -851,7 +851,7 @@
(defmulti handle-remote-genernal-exception
"throw `ex-break-rtc-loop` when need to quit current rtc-loop"
(fn [resp & _] (comp :type :ex-data resp)))
(fn [resp & _] (:type (:ex-data resp))))
(declare <remove-remote-graph-info stop-rtc stop-rtc-helper)
(defmethod handle-remote-genernal-exception :graph-not-exist [_ state]
@ -1006,7 +1006,10 @@
(async/unsub data-from-ws-pub "push-updates" push-data-from-ws-ch)
(catch :default e
(case (:type (ex-data e))
::break-rtc-loop (prn :break-rtc-loop))))))))
::break-rtc-loop (prn :break-rtc-loop)
;; else
(prn ::unknown-ex e)
)))))))
;;; APIs ================================================================