mirror of https://github.com/logseq/logseq
fix: cancel rsapi requests when paused
parent
8f55c1d3a6
commit
257dda1b35
|
@ -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))}})
|
||||||
|
|
Loading…
Reference in New Issue