Skip to content

Commit

Permalink
Fix: Prevent restore cache on closing connection (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubboucek authored Sep 5, 2022
1 parent 650e43d commit 1a0a86e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ public function expunge(): bool

public function close(int $flag = 0): bool
{
$stream = $this->resource->getStream();

$this->resource->clearLastMailboxUsedCache();

return \imap_close($this->resource->getStream(), $flag);
return \imap_close($stream, $flag);
}

public function getQuota(string $root = 'INBOX'): array
Expand Down

0 comments on commit 1a0a86e

Please sign in to comment.