Dolda2000 GitWeb
/
lisp-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
dfa6197
)
Make sure always to close the mpcl socket stream properly.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 5 Apr 2010 05:08:35 +0000
(07:08 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 5 Apr 2010 05:08:35 +0000
(07:08 +0200)
mpcl.lisp
patch
|
blob
|
blame
|
history
diff --git
a/mpcl.lisp
b/mpcl.lisp
index
98a545e
..
de3e410
100644
(file)
--- a/
mpcl.lisp
+++ b/
mpcl.lisp
@@
-153,7
+153,9
@@
"Disconnect from MPD."
(with-conn-lock
(let ((sk (prog1 *socket* (setf *socket* nil))))
- (if sk (ignore-errors (close sk))))))
+ (when sk (handler-case
+ (close sk)
+ (error () (close sk :abort t)))))))
(defun connection-error (condition-type &rest condition-args)
(disconnect)