diff options
| author | Lars Ingebrigtsen | 2015-12-27 22:18:32 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2015-12-27 22:18:32 +0100 |
| commit | ff5f37e56a1df53dbc15c8590d904ac37a82a335 (patch) | |
| tree | 8508441875185c3967f80eddfec579b6ac3a81dc | |
| parent | af25edebbcb33e788a0f4f9619787417aa0834b8 (diff) | |
| download | emacs-ff5f37e56a1df53dbc15c8590d904ac37a82a335.tar.gz emacs-ff5f37e56a1df53dbc15c8590d904ac37a82a335.zip | |
Don't bug out in erc after waking from sleep
* erc-backend.el (erc-server-send-ping): If the server has
closed connection, this may already have been detected and
`erc-server-last-received-time' has been set to nil (bug#13608).
| -rw-r--r-- | lisp/erc/erc-backend.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el index daaa1b0428a..df957d1ce42 100644 --- a/lisp/erc/erc-backend.el +++ b/lisp/erc/erc-backend.el | |||
| @@ -805,7 +805,9 @@ protection algorithm." | |||
| 805 | (defun erc-server-send-ping (buf) | 805 | (defun erc-server-send-ping (buf) |
| 806 | "Send a ping to the IRC server buffer in BUF. | 806 | "Send a ping to the IRC server buffer in BUF. |
| 807 | Additionally, detect whether the IRC process has hung." | 807 | Additionally, detect whether the IRC process has hung." |
| 808 | (if (buffer-live-p buf) | 808 | (if (and (buffer-live-p buf) |
| 809 | (with-current-buffer buf | ||
| 810 | erc-server-last-received-time)) | ||
| 809 | (with-current-buffer buf | 811 | (with-current-buffer buf |
| 810 | (if (and erc-server-send-ping-timeout | 812 | (if (and erc-server-send-ping-timeout |
| 811 | (> | 813 | (> |