Skip to content

fatal error: all goroutines are asleep - deadlock! #1

@xwvon

Description

@xwvon
I got below error after running the default example for a while
goroutine 1 [select]:
main.watchMail({0x7c87a0, 0xa77520}, {{0x763592, 0x14}, 0x3e1, {0x765fb3, 0x19}, {0x75dc8d, 0xb}, {0x0, ...}})
        C:/xxx/mailstream/examples/default/main.go:25 +0x33b
main.main()
        C:/xxx/mailstream/examples/default/main.go:55 +0x205

goroutine 35 [select]:
github.com/robin-samuel/mailstream.(*Client).serve(0xc0000b4120)
        C:/xxx/mailstream/client.go:112 +0x116
created by github.com/robin-samuel/mailstream.New in goroutine 1
        C:/xxx/mailstream/client.go:97 +0x4bf

goroutine 36 [select]:
github.com/robin-samuel/mailstream.(*Client).WaitForUpdates.func1()
        C:/xxx/mailstream/client.go:212 +0x2b2
created by github.com/robin-samuel/mailstream.(*Client).WaitForUpdates in goroutine 1
        C:/xxx/mailstream/client.go:191 +0xa5
exit status 2
``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions