emersion / go-imap

📥 An IMAP library for clients and servers
MIT License
2.02k stars 288 forks source link

imapclient: deadlock on error before greeting #585

Closed Rikkuru closed 5 months ago

Rikkuru commented 5 months ago

I was testing timeouts and got a deadlock in WaitGreeting

emersion commented 5 months ago

Overall the bugfix looks good, good catch!

Rikkuru commented 5 months ago

@emersion I changed fix a little decErr is not always set idk if I should include it at all in WaitGreeting ?

emersion commented 5 months ago

Thanks!