Ocpp: fix connector not de-registered (#22113)
This commit is contained in:
parent
241f336247
commit
6f65584e87
8 changed files with 23 additions and 7 deletions
|
|
@ -601,8 +601,9 @@ func testConfigHandler(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
// prevent context from being cancelled
|
||||
// prevent context from being cancelled during test
|
||||
close(done)
|
||||
defer cancel()
|
||||
|
||||
jsonWrite(w, testInstance(instance))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue