Skip to content

Commit

Permalink
fix reconnect function
Browse files Browse the repository at this point in the history
  • Loading branch information
subsan committed Mar 15, 2023
1 parent afdd66c commit 80b5238
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/connector/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ func disconnect() {
}

func reconnect() {
disconnect()

for !isConnected {
time.Sleep(config.Config.Timeout.Reconnect)
log.Printf(" [ ] [connector] try reconnect")
Expand Down

0 comments on commit 80b5238

Please sign in to comment.