Only stop MCU if started before.

This commit is contained in:
Joachim Bauch 2022-03-23 11:46:17 +01:00
parent 57eb2388ca
commit 9f86c80c33
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -357,7 +357,9 @@ func (s *ProxyServer) Stop() {
return
}
s.mcu.Stop()
if s.mcu != nil {
s.mcu.Stop()
}
s.tokens.Close()
}