Fix race issue in set listener (#2332)

This commit is contained in:
Zoltan Papp 2024-07-26 16:27:51 +02:00 committed by GitHub
parent 1f48fdf6ca
commit 1a15b0f900
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,6 +128,9 @@ func (s *serviceViaListener) RuntimeIP() string {
}
func (s *serviceViaListener) setListenerStatus(running bool) {
s.listenerFlagLock.Lock()
defer s.listenerFlagLock.Unlock()
s.listenerIsRunning = running
}