Skip to content

Commit 748476e

Browse files
authored
Merge pull request #99 from gfanton/fix/wrong-bus-entity
2 parents 07c8fba + bd2fced commit 748476e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

events/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func (e *EventEmitter) GetBus() (bus event.Bus) {
212212
func (e *EventEmitter) SetBus(bus event.Bus) (err error) {
213213
e.muEmitters.Lock()
214214

215-
if bus == nil {
215+
if e.bus == nil {
216216
e.bus = bus
217217
} else {
218218
err = fmt.Errorf("bus is already init")

0 commit comments

Comments
 (0)