You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
incus/server/events: Fix issue with race condition
AddHandler is checking if the listener is not nil before starting it.
However, when the last handler is removed, the listener could be set to
nil asynchronously in a goroutine. If a new handler was added immediately
after, there was a chance the listener would never be started again,
leading to dropped events. This fix ensures that the listener is properly
restarted in such cases.
Signed-off-by: Piotr Resztak <[email protected]>
0 commit comments