mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 12:36:48 +00:00
event: fix typo (#15270)
This commit is contained in:
parent
3680cd5926
commit
cefeb58598
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ func (mux *TypeMux) Subscribe(types ...interface{}) *TypeMuxSubscription {
|
||||||
defer mux.mutex.Unlock()
|
defer mux.mutex.Unlock()
|
||||||
if mux.stopped {
|
if mux.stopped {
|
||||||
// set the status to closed so that calling Unsubscribe after this
|
// set the status to closed so that calling Unsubscribe after this
|
||||||
// call will short curuit
|
// call will short circuit.
|
||||||
sub.closed = true
|
sub.closed = true
|
||||||
close(sub.postC)
|
close(sub.postC)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue