Fix corrections propagation
This commit is contained in:
parent
e0cd502c35
commit
3d772704b7
4 changed files with 13 additions and 5 deletions
|
@ -287,6 +287,11 @@ func SurveyWSAdmin(c *gin.Context) {
|
|||
var v WSMessage
|
||||
var err error
|
||||
for {
|
||||
// Reset variable state
|
||||
v.Corrected = false
|
||||
v.Corrections = nil
|
||||
v.Timer = 0
|
||||
|
||||
err = wsjson.Read(context.Background(), ws, &v)
|
||||
if err != nil {
|
||||
log.Println("Error when receiving message:", err)
|
||||
|
|
Reference in a new issue