From 46595636f006ec8817b5626168c25310f4a67d43 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 15 Jun 2020 09:17:28 +0000 Subject: imap: stop_idle: fix parameter parsing :x 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index d4ef6efe..373bffc1 100644 --- a/lib/PublicInbox/IMAP.pm +++ b/lib/PublicInbox/IMAP.pm @@ -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}; -- cgit v1.2.3-24-ge0c7