event: fix typo (#15270)

pull/15275/head
Jia Chenhui 7 years ago committed by Felix Lange
parent 3680cd5926
commit cefeb58598
  1. 2
      event/event.go

@ -56,7 +56,7 @@ func (mux *TypeMux) Subscribe(types ...interface{}) *TypeMuxSubscription {
defer mux.mutex.Unlock()
if mux.stopped {
// set the status to closed so that calling Unsubscribe after this
// call will short curuit
// call will short circuit.
sub.closed = true
close(sub.postC)
} else {

Loading…
Cancel
Save