Skip to content

Commit

Permalink
Fixed issue were undefined callback was not identified
Browse files Browse the repository at this point in the history
  • Loading branch information
cjohansson committed Jan 16, 2020
1 parent cdf4ba4 commit ac5db26
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions phps-mode-analyzer.el
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@
(when (string= status "error")
(display-warning 'phps-mode (format "Async error %s" (cdr start-return))))

(when (boundp callback)
(when (and (boundp 'callback)
callback)
(funcall callback return)))))
phps-mode-async-processes))

Expand Down Expand Up @@ -270,7 +271,8 @@
(elapsed (- end-time-float start-time-float)))
(message "Asynchronous serial command using thread finished, elapsed: %fs" elapsed)))

(when (boundp callback)
(when (and (boundp 'callback)
callback)
(funcall callback return))))
key)
phps-mode-async-threads)
Expand All @@ -296,7 +298,8 @@
(elapsed (- end-time-float start-time-float)))
(message "Synchronous serial command finished, elapsed: %fs" elapsed)))

(when (boundp 'callback)
(when (and (boundp 'callback)
callback)
(funcall callback return))))))

(defun phps-mode-lexer-BEGIN (state)
Expand Down

0 comments on commit ac5db26

Please sign in to comment.