]> Sergey Matveev's repositories - public-inbox.git/commitdiff
imap: stop_idle: fix parameter parsing :x
authorEric Wong <e@yhbt.net>
Mon, 15 Jun 2020 09:17:28 +0000 (09:17 +0000)
committerEric Wong <e@yhbt.net>
Tue, 16 Jun 2020 00:07:06 +0000 (00:07 +0000)
stop_idle was a noop when the client issues a "DONE"
continuation or just disconnects.  This would not have
led to a long term memory leak since FDs get closed and
reused, anyways, and all of our InboxIdle mappings are
keyed by FD.

lib/PublicInbox/IMAP.pm

index d4ef6efe156d2b3efde19d4eafa08aa3a760b73d..373bffc18d9ade459410155abf93ce77194c02be 100644 (file)
@@ -351,7 +351,7 @@ sub cmd_idle ($$) {
 }
 
 sub stop_idle ($$) {
-       my ($self, $ibx);
+       my ($self, $ibx) = @_;
        my $sock = $self->{sock} or return;
        my $fd = fileno($sock);
        delete $IDLERS->{$fd};