summaryrefslogtreecommitdiff
path: root/chess-engine.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-engine.el')
-rw-r--r--chess-engine.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/chess-engine.el b/chess-engine.el
index eb492f1..d0a9951 100644
--- a/chess-engine.el
+++ b/chess-engine.el
@@ -291,9 +291,9 @@
(defun chess-engine-destroy (engine)
(let ((buf (or engine (current-buffer))))
(when (buffer-live-p buf)
- (chess-engine-command buf 'destroy)
(with-current-buffer buf
(remove-hook 'kill-buffer-hook 'chess-engine-on-kill t))
+ (chess-engine-command buf 'destroy)
(kill-buffer buf))))
(defun chess-engine-command (engine event &rest args)