Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type test struct {
- client *imap.Client
- }
- //connection inits blabla
- for {
- test.client.Idle()
- test.client.Recv(1)
- imap.Wait(test.client.IdleTerme())
- }
- // => exclusive client access violation
- client = imap.Dial(...)
- for {
- client.Idle()
- client.Recv(1)
- imap.Wait(client.IdleTerme())
- }
- // => works fine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement