event: fix typo (#15270)

This commit is contained in:
Jia Chenhui authored and Felix Lange committed 2017-10-10 14:11:15 +02:00
1 parent 3680cd5926
commit cefeb58598
1 file changed
+1 -1
+1 -1
View File
@@ -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 {