Skip to content

Commit

Permalink
better var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackneill committed Jul 20, 2013
1 parent 76f090a commit 9c527a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ func handlePacket(data string, size int) {
func reConnect() {
for which := range isConnected {
if !which {
mul, err := time.ParseDuration(config["Timeout"])
dur, err := time.ParseDuration(config["Timeout"])
if err != nil {
fmt.Println(err)
break
}
time.Sleep(mul)
time.Sleep(dur)
fmt.Println("[SOCET] Reconnecting...")
go connectToSocket(mHost)
}
Expand Down

0 comments on commit 9c527a1

Please sign in to comment.