summaryrefslogtreecommitdiff
path: root/chess-engine.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-14 23:07:06 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-14 23:07:06 +0000
commitdb5b94f367aebaeb019b46b2e2feb9f366d5d964 (patch)
tree51fcd68cc026f631a7a50efa8795be46d340469d /chess-engine.el
parent4aa1c73a2e77af7bcf1bd24837c9f07488068cdd (diff)
*** no comment ***
Diffstat (limited to 'chess-engine.el')
-rw-r--r--chess-engine.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/chess-engine.el b/chess-engine.el
index be48270..ed80570 100644
--- a/chess-engine.el
+++ b/chess-engine.el
@@ -266,7 +266,8 @@
(with-current-buffer (generate-new-buffer " *chess-engine*")
(setq buffer (current-buffer))
(let ((proc (apply handler 'initialize handler-ctor-args)))
- (when proc ;must be a process or t
+ (if (null proc) ; must be a process or t
+ (kill-buffer buffer)
(add-hook 'kill-buffer-hook 'chess-engine-on-kill nil t)
(setq chess-engine-regexp-alist (symbol-value regexp-alist)
chess-engine-event-handler handler