laten zien hoe downloads en zo gaan
This commit is contained in:
@@ -359,7 +359,10 @@
|
||||
(make-semaphore 1))))
|
||||
(set-dlna-playback-monitor!
|
||||
playback
|
||||
(thread (λ () (monitor-loop playback poll-seconds))))
|
||||
(thread (λ ()
|
||||
(with-handlers ((exn:break? void))
|
||||
(parameterize-break #t
|
||||
(monitor-loop playback poll-seconds))))))
|
||||
playback))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -483,7 +486,9 @@
|
||||
(set-dlna-playback-running?! playback #f)
|
||||
(let ((monitor (dlna-playback-monitor playback)))
|
||||
(when (and monitor (not (thread-dead? monitor)))
|
||||
(kill-thread monitor))
|
||||
;; A break unwinds call-with-semaphore; kill-thread leaves its lock held.
|
||||
(break-thread monitor)
|
||||
(thread-wait monitor))
|
||||
(set-dlna-playback-monitor! playback #f)
|
||||
(with-lock
|
||||
playback
|
||||
|
||||
Reference in New Issue
Block a user