Skip to content

panic: close of closed channel #121

@kke

Description

@kke
goroutine 1709 [running]:
github.com/masterzen/winrm.(*Command).Close(0xc00017e700, 0x0, 0x0)
    github.com/masterzen/winrm@v0.0.0-20201030141608-56ca5c5f2380/command.go:114

https://github.com/masterzen/winrm/blob/master/command.go#L111-L115

	select { // close cancel channel if it's still open
	case <-c.cancel:
	default:
		close(c.cancel)
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions