summaryrefslogtreecommitdiff
path: root/chess-engine.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-01-24 22:14:55 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-01-24 22:14:55 +0000
commite1ac86bb8064d7528570fc5e44e93bc9b512520d (patch)
tree11d8e042590c5ea9edcc9fe10617a50d497e2f59 /chess-engine.el
parent90a024f2a28023b1c90cecc7e883856c613404f0 (diff)
Add status code to check for open server sockets.
Diffstat (limited to 'chess-engine.el')
-rw-r--r--chess-engine.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/chess-engine.el b/chess-engine.el
index be4aa64..f3c2f30 100644
--- a/chess-engine.el
+++ b/chess-engine.el
@@ -301,8 +301,8 @@
(or response-handler 'chess-engine-default-handler))
(let ((proc chess-engine-process))
(when (and proc (processp proc))
- (unless (memq (process-status proc) '(run open))
- (chess-error 'failed-engine-start))
+ (unless (memq (process-status proc) '(run open listen))
+ (chess-error 'failed-start))
(unless (process-filter proc)
(set-process-filter proc 'chess-engine-filter)))
(setq chess-engine-current-marker (point-marker))