fix(bus): prevent double close in event dispatcher
arcad/edge/pipeline/head This commit looks good Details

This commit is contained in:
wpetit 2023-10-21 21:38:34 +02:00
parent d1458bab4a
commit de4ab0d02c
1 changed files with 5 additions and 1 deletions

View File

@ -83,8 +83,12 @@ func (d *eventDispatcher) Close() {
}
func (d *eventDispatcher) close() {
d.closed = true
if d.closed {
return
}
close(d.in)
d.closed = true
}
func (d *eventDispatcher) In(msg bus.Message) (err error) {