Commit ff5f37e5 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

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).
parent af25edeb
......@@ -805,7 +805,9 @@ protection algorithm."
(defun erc-server-send-ping (buf)
"Send a ping to the IRC server buffer in BUF.
Additionally, detect whether the IRC process has hung."
(if (buffer-live-p buf)
(if (and (buffer-live-p buf)
(with-current-buffer buf
(with-current-buffer buf
(if (and erc-server-send-ping-timeout
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment