On Saturday, 19 July 2014 05:00:42 CEST, James Harkins wrote:
IMO going offline should immediately kill any network activities. This is a
reasonable expectation from the user's point of view.

That's a good observation. I agree that the current status might be counterintuitive to someone who didn't write that code.

To expand a bit, the network activity is indeed "killed", meaning that Trojita won't send anything over that socket anymore. The listening side is, however, not terminated and will wait until the remote end says "OK, let's close this", at which time everything gets cleaned up properly. There's of course a timeout for this as well.

Please file a bug about this. It's gonna be a low-priority one, though. Trojita should still be a good network citizen and wait for server's "* BYE" and a socket close during the normal operation. Perhaps simply modifying the VisbleTasksModel would be the best approach?

Cheers,
Jan

--
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/

Reply via email to