go-systemd
go-systemd copied to clipboard
Job completion channel not closed
Shouldn't jobComplete be closing the channel after it is done with it here?
func (c *Conn) jobComplete(signal *dbus.Signal) {
...
c.jobListener.Lock()
out, ok := c.jobListener.jobs[job]
if ok {
out <- result
delete(c.jobListener.jobs, job)
}
c.jobListener.Unlock()
}