fix: cancel rsapi requests when paused

pull/7096/head
Tienson Qin 2022-10-24 12:54:35 +08:00
parent 8f55c1d3a6
commit 257dda1b35
1 changed files with 1 additions and 0 deletions

View File

@ -2645,6 +2645,7 @@
(.schedule this next-state nil nil))))) (.schedule this next-state nil nil)))))
(pause [this] (pause [this]
(<! (<rsapi-cancel-all-requests))
(put-sync-event! {:event :pause (put-sync-event! {:event :pause
:data {:graph-uuid graph-uuid :data {:graph-uuid graph-uuid
:epoch (tc/to-epoch (t/now))}}) :epoch (tc/to-epoch (t/now))}})