Skip to content

Commit

Permalink
fixed modulo
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovikov committed Sep 29, 2023
1 parent 21f4094 commit fac1250
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HFP.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/ivlovric/HFP/queue"
)

const AppVersion = "0.56.3"
const AppVersion = "0.56.4"

var localAddr *string = flag.String("l", ":9060", "Local HEP listening address")
var remoteAddr *string = flag.String("r", "192.168.2.2:9060", "Remote HEP address")
Expand Down Expand Up @@ -280,7 +280,7 @@ func sendHepOut(data []byte, len int) error {
copyHEPbufftoFile(data, HEPsavefile)
//Starts reopen connection
reconnectCount++
if reconnectCount%*ReconnectCheck == 0 || *ReconnectCheck == 0 {
if *ReconnectCheck == 0 || reconnectCount%*ReconnectCheck == 0 {
if err := connectToHEPBackend(); err != nil {
if *Debug == "on" {
log.Println("||-->", logsymbols.Error, " reconnect to HEP backend error: ", err.Error())
Expand Down Expand Up @@ -309,7 +309,7 @@ func sendHepOut(data []byte, len int) error {

//Starts reopen connection
reconnectCount++
if reconnectCount%*ReconnectCheck == 0 || *ReconnectCheck == 0 {
if *ReconnectCheck == 0 || reconnectCount%*ReconnectCheck == 0 {
if err := connectToHEPBackend(); err != nil {
if *Debug == "on" {
log.Println("||-->", logsymbols.Error, " reconnect to HEP backend error: ", err.Error())
Expand Down

0 comments on commit fac1250

Please sign in to comment.