Skip to content

ImapProtocol::logout always throws 'not connected' Exception after upgraded to 4.1.2 #351

@gitstashgithub

Description

@gitstashgithub

After the upgrade the logout function always throws the RuntimeException. I checked the $this->stream value and it's NULL.

src/Connection/Protocols/ImapProtocol.php

public function logout(): array { if (!$this->stream) { throw new RuntimeException('not connected'); } $result = $this->requestAndResponse('LOGOUT', [], true); fclose($this->stream); $this->stream = null; $this->uid_cache = null; return $result; } 

Does anyone know how to solve this? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions