From: Guilhem Moulin <guilhem@fripost.org>
Date: Tue, 8 May 2018 23:49:37 +0000 (+0200)
Subject: typofix
X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=03f02402ff8cb75eef3c727ceba8f2c28fdec551;p=interimap.git

typofix
---

diff --git a/lib/Net/IMAP/InterIMAP.pm b/lib/Net/IMAP/InterIMAP.pm
index d898f6d..3270108 100644
--- a/lib/Net/IMAP/InterIMAP.pm
+++ b/lib/Net/IMAP/InterIMAP.pm
@@ -963,7 +963,7 @@ sub slurp($$$) {
         foreach my $imap (@ready) {
             my $x = $imap->_getline();
             $imap->_resp($x, sub($;$$) {
-                if ($stopwhen->(@_)) {
+                if ($stopwhen->($imap, @_)) {
                     $aborted = 1;
                     $timeout = 0; # keep reading the handles while there is pending data
                 }