andyedinborough / aenetmail

C# POP/IMAP Mail Client
369 stars 153 forks source link

_Responses.Take(); gets stuck when using a backgroundworker #29

Closed piher closed 12 years ago

piher commented 12 years ago

Hi,

I was downloading emails from a backgroundWorker to keep the UI responsive and it was working fine when the textclient class was using a streamreader but ever since it is a thread that is reading the response nothing is received from the server.

I have checked that the exact same code works fine outside from the worker so I'm guessing that it's a thread-related issue but since I am no expert I ask your help...

A quick test shows that the Connect method in TextClient gets stuck on the line string info = _Responses.Take();

Any ideas and/or solutions ?

andyedinborough commented 12 years ago

Can you send me an example project?

piher commented 12 years ago

Ah never mind I'm a fool, my code changed an account's settings to not using ssl anymore. Thanks though

andyedinborough commented 12 years ago

:] n/p