Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gitstashgithub opened this issue Dec 17, 2022 · 1 comment
Labels
bug Something isn't working validated

Comments

@gitstashgithub
Copy link

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!

@Webklex Webklex added bug Something isn't working validated labels Dec 30, 2022
@Webklex
Copy link
Owner

Webklex commented Jan 2, 2023

Hi @gitstashgithub ,
many thanks for your report. I was able to replicate the behavior and pushed a fix :)

Best regards,

@Webklex Webklex closed this as completed Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validated
Projects
None yet
Development

No branches or pull requests

2 participants