Skip to content

Commit df840db

Browse files
committed
fix set op lock bug
1 parent ad5072d commit df840db

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

utils/admin/validate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func (v *validator) startValidation(id, account, key string, mode int) error {
5151

5252
// Stop the validation process
5353
v.stopValidation()
54+
v.reduceMode()
5455
return
5556
}
5657

@@ -67,7 +68,6 @@ func (v *validator) startValidation(id, account, key string, mode int) error {
6768

6869
func (v *validator) stopValidation() {
6970
v.setActive(false)
70-
v.reduceMode()
7171
if v.socket != nil {
7272
v.socket.Close()
7373
}

utils/admin/websocket.go

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ func (v *validator) routineRead() error {
6464
log.Println("Validate Error -", data.Error)
6565
// Reduce op mode to open source
6666
v.stopValidation()
67+
v.reduceMode()
6768
}
6869
}
6970
}

0 commit comments

Comments
 (0)