]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't send reports in erc-dcc-get-filter when nested
authorF. Jason Park <jp@neverwas.me>
Mon, 28 Mar 2022 09:24:43 +0000 (02:24 -0700)
committerF. Jason Park <jp@neverwas.me>
Mon, 23 May 2022 01:04:52 +0000 (18:04 -0700)
* lisp/erc/erc-dcc.el (erc-dcc-get-filter): Don't bother sending a
"received so far" receipt if another attempt is still ongoing.
(Bug#54458)

lisp/erc/erc-dcc.el

index a37dc7caa302063450f35da86c15afe692e06512..2a06efdaa4e2dc46065e773da53f8e12aeabc7f0 100644 (file)
@@ -986,9 +986,10 @@ rather than every 1024 byte block, but nobody seems to care."
          'dcc-get-file-too-long
          ?f (file-name-nondirectory (buffer-name)))
         (delete-process proc))
-       (t
-        (process-send-string
-         proc (erc-pack-int received-bytes)))))))
+       ((not (process-get proc :reportingp))
+        (process-put proc :reportingp t)
+        (process-send-string proc (erc-pack-int received-bytes))
+        (process-put proc :reportingp nil))))))
 
 (defun erc-dcc-get-sentinel (proc event)
   "This is the process sentinel for CTCP DCC SEND connections.