Browse files

handle the callbacks from phantom webserver better

  • Loading branch information...
1 parent 6499ecd commit ecf3fded75bdd1f38b00e31f53160826a6255098 @nicferrier nicferrier committed Apr 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 phantomjs.el
@@ -54,6 +54,7 @@ Mostly exists for calling the end process callback."
((member status '("finished\n"
"exited abnormally with code 255\n"))
+ (message "phantomjs got finished signal")
(when (functionp (process-get proc :phantomjs-end-callback))
(funcall (process-get proc :phantomjs-end-callback))))
@@ -140,7 +141,7 @@ The messages go to *Messages*."
(match-string 1))))
(when phantomjs-callback-debug
(message "phantomjs--callback got status %s" http-status))
- (when (eq 200 (string-to-number http-status))
+ (when (string-to-number http-status)
((listp args)
;; The callback is for a specific user supplied callback.

0 comments on commit ecf3fde

Please sign in to comment.