Skip to content

Commit

Permalink
Add first websocketlness check closes #108
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Jun 10, 2024
1 parent d7e727d commit 009ff48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/router/statemachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func deviceChanges(_ string, current, previous data.Device, et data.EventType) e
err = Verifier.Challenge(current.Address)
if err != nil {
time.Sleep(1 * time.Second)
} else {
break
}
}

Expand All @@ -121,7 +123,6 @@ func deviceChanges(_ string, current, previous data.Device, et data.EventType) e
}
} else {
log.Printf("%s:%s device succeeded challenge", current.Username, current.Address)

}
}

Expand Down

0 comments on commit 009ff48

Please sign in to comment.