Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
fix p2p ping bug
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Feb 22, 2017
1 parent 2c9041b commit 5a29044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ func (sc *Client) MultiListen() bool {
}
go func() {
quit := false
ping := time.NewTicker(time.Second * 5)
ping := time.NewTicker(time.Second)
go func() {
out:
for {
Expand All @@ -1123,7 +1123,6 @@ func (sc *Client) MultiListen() bool {
}
}
}()
ping.Stop()
for {
conn, err := g_LocalConn.Accept()
if err != nil {
Expand All @@ -1145,6 +1144,7 @@ func (sc *Client) MultiListen() bool {
go handleLocalServerResponse(sc, sessionId)
}
quit = true
ping.Stop()
}()
mode := "p2p mode"
if !sc.bUdp {
Expand Down

0 comments on commit 5a29044

Please sign in to comment.