This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
use mtx in OnStop
pull/1842/head
Ethan Buchman
8 years ago
parent
1c85cb98a4
commit
2337086736
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
events.go
+ 2
- 0
events.go
View File
@ -54,6 +54,8 @@ func (evsw *eventSwitch) OnStart() error {
}
func
(
evsw
*
eventSwitch
)
OnStop
(
)
{
evsw
.
mtx
.
Lock
(
)
defer
evsw
.
mtx
.
Unlock
(
)
evsw
.
BaseService
.
OnStop
(
)
evsw
.
eventCells
=
nil
evsw
.
listeners
=
nil
Write
Preview
Loading…
Cancel
Save