Cannot 'recur' within 'try'
This commit is contained in:
parent
4e3fa0914a
commit
14267d15db
|
@ -130,8 +130,9 @@
|
|||
(when verbose
|
||||
(println "stopping object listener")
|
||||
(async/close! mqtt-chan))
|
||||
(do
|
||||
(try
|
||||
(do (>! mqtt-chan
|
||||
(>! mqtt-chan
|
||||
{:type :detection-event
|
||||
:time (Instant/now)
|
||||
:detection
|
||||
|
@ -141,7 +142,7 @@
|
|||
:detect-time
|
||||
:objects
|
||||
:detection-url])})
|
||||
(recur (<! obj-chan)))
|
||||
(catch Exception e
|
||||
(println (.toString e))))))
|
||||
(println (.toString e))))
|
||||
(recur (<! obj-chan)))))
|
||||
(->SuanNiServer event-chan image-chan obj-chan listener)))
|
||||
|
|
Loading…
Reference in New Issue