go-systemd icon indicating copy to clipboard operation
go-systemd copied to clipboard

Job completion channel not closed

Open ha-D opened this issue 4 months ago • 0 comments

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()
}

ha-D avatar Sep 22 '25 19:09 ha-D