Skip to content

Commit

Permalink
Revert "Fix: Prevent restore cache on closing connection (ddeboer#548)"
Browse files Browse the repository at this point in the history
This reverts commit 1a0a86e.
  • Loading branch information
vladimir.kaprielov committed Oct 27, 2022
1 parent 1a0a86e commit dec03b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ public function expunge(): bool

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

$this->resource->clearLastMailboxUsedCache();

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

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

0 comments on commit dec03b6

Please sign in to comment.