diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2018-05-05 22:07:58 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2018-05-05 22:07:58 +0200 |
commit | abe2651ad5a22c81bc857366aad3e8e9ade4490d (patch) | |
tree | 02d55bfa601f05d1ff15b7790f254f90974f85a7 /event.go | |
parent | 34891d92cd36289294d38cd9f26f1fc2456ef26a (diff) |
Removed remaining signals from peer
1. Removed remaining signals from peer struct
2. Made needAnotherKeepalive local
3. Removed environment check from warning text (annoying when debugging)
Diffstat (limited to 'event.go')
-rw-r--r-- | event.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ func (e *Event) Clear() { } func (e *Event) Fire() { - if atomic.SwapInt32(&e.guard, 1) != 0 { + if e == nil || atomic.SwapInt32(&e.guard, 1) != 0 { return } if now := time.Now(); now.After(e.next) { |