作者 邓超

x

... ... @@ -24,9 +24,13 @@ class ImapPool {
return static::$pool[$config->getEmail()];
}
/**
* @param Imap $imap
* @author:dc
* @time 2024/10/14 9:05
*/
public static function release(Imap $imap){
unset(static::$pool[$imap->config->getEmail()]);
}
... ...
... ... @@ -440,9 +440,12 @@ class SyncMail {
public function __destruct()
{
// TODO: Implement __destruct() method.
ImapPool::release($this->imap);
unset($this->imap);
}
}
\ No newline at end of file
... ...