Navigation Menu

Skip to content

Commit

Permalink
handle the callbacks from phantom webserver better
Browse files Browse the repository at this point in the history
  • Loading branch information
nicferrier committed Apr 27, 2012
1 parent 6499ecd commit ecf3fde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phantomjs.el
Expand Up @@ -54,6 +54,7 @@ Mostly exists for calling the end process callback."
((member status '("finished\n"
"killed\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))))
(t
Expand Down Expand Up @@ -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)
(cond
((listp args)
;; The callback is for a specific user supplied callback.
Expand Down

0 comments on commit ecf3fde

Please sign in to comment.