Skip to content

Commit ec96953

Browse files
author
Bozhidar Batsov
committed
Handle nil as the value of nrepl-sync-request-timeout
1 parent 89e4f4c commit ec96953

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nrepl-client.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,9 @@ of the same \"op\" that came along."
905905
(while (not (member "done" (nrepl-dict-get response "status")))
906906
(accept-process-output nil 0.01)
907907
;; break out in case we don't receive a response for a while
908-
(when (> (cadr (time-subtract (current-time) time0))
909-
nrepl-sync-request-timeout)
908+
(when (and nrepl-sync-request-timeout
909+
(> (cadr (time-subtract (current-time) time0))
910+
nrepl-sync-request-timeout))
910911
(error "Sync nREPL request timed out %s" request)))
911912
(-when-let* ((ex (nrepl-dict-get response "ex"))
912913
(err (nrepl-dict-get response "err")))

0 commit comments

Comments
 (0)