On 19 August 2013 10:58, Daniel Vrátil <[email protected]> wrote:
> Because it's a socket error KSslSocket will emit socketError() and IMAP
> resource will try to reconnect. The interesting part here is, that calling
> QAbstractSocket::disconnect() will emit the error again (probably it's trying
> to write something to the socket?) and so we end up in an endless loop, when
> we try to disconnect on an error, which causes an error, on which we try to
> disconnect....

You should call abort() rather than disconnect() here.

Cheers

Rich.

Reply via email to