add simple-stream-error handler in osc-device-cleanup
This commit is contained in:
parent
0e4509bc75
commit
7d43627bcc
1 changed files with 5 additions and 1 deletions
|
@ -122,5 +122,9 @@
|
|||
(format t "~%OSC device stopped: ~A~%"
|
||||
(name osc-device)))
|
||||
(when (socket osc-device)
|
||||
(socket-close (socket osc-device))
|
||||
(handler-case
|
||||
(socket-close (socket osc-device) :abort t)
|
||||
(sb-int:simple-stream-error ()
|
||||
(when (debug-mode osc-device)
|
||||
(warn "Device ~A gone away." (name osc-device)))))
|
||||
(set-socket nil osc-device))))
|
||||
|
|
Loading…
Reference in a new issue