lorenzodonini / ocpp-go

Open Charge Point Protocol implementation in Go
MIT License
262 stars 125 forks source link

Fix send on closed channel with ws.Client.Stop #111

Closed michaelbeaumont closed 3 years ago

michaelbeaumont commented 3 years ago

We need to send the error in a critical section, otherwise it races with Client.cleanup.

michaelbeaumont commented 3 years ago

@lorenzodonini for some reason I accidentally closed this, still relevant