Skip to content

Commit

Permalink
Not waiting to find old balancer for closing on reconfigure
Browse files Browse the repository at this point in the history
  • Loading branch information
oxtoacart committed Feb 1, 2016
1 parent ebb9e6a commit 6385da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.com/getlantern/flashlight/client/balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (client *Client) initBalancer(cfg *ClientConfig) {
}

bal := balancer.New(dialers...)
oldBal, ok := client.bal.Get(25 * time.Millisecond)
oldBal, ok := client.bal.Get(0 * time.Millisecond)
if ok {
// Close old balancer on a goroutine to avoid blocking here
go func() {
Expand Down

0 comments on commit 6385da2

Please sign in to comment.