Ocpp: fix connector not de-registered (#22113)

This commit is contained in:
andig 2025-08-03 14:24:33 +02:00 • committed by GitHub
parent 241f336247
commit 6f65584e87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 23 additions and 7 deletions

View file

@ -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))
}