Browse Source

use mtx in OnStop

pull/1842/head
Ethan Buchman 8 years ago
parent
commit
2337086736
1 changed files with 2 additions and 0 deletions
  1. +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


Loading…
Cancel
Save