Skip to content

Commit

Permalink
Merge pull request #21 from exaring/refactor/fe
Browse files Browse the repository at this point in the history
Fix stop
  • Loading branch information
takt committed Dec 4, 2019
2 parents d464677 + a174949 commit 9f0c352
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/prober/prober.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ type Prober struct {

// Config is the configuration of a prober
type Config struct {
BasePort uint16
//LocalAddr net.IP
BasePort uint16
ConfiguredSrcAddr net.IP
SrcAddrs []net.IP
Hops []Hop
Expand Down Expand Up @@ -93,7 +92,7 @@ func (p *Prober) Start() error {

// Stop stops the prober
func (p *Prober) Stop() {
p.stop <- struct{}{}
close(p.stop)
}

func (p *Prober) cleaner() {
Expand Down

0 comments on commit 9f0c352

Please sign in to comment.