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
We currently fire Closed event from OnClose() before we invoke the Close() method.
This is done to avoid a deadlock when Close() or Dispose() is invoked on the channel from an eventhandler for the Closed event.
As it is right now, the Closed event is not garanteed to fire before the channel is disposed, and is not garanteed to fire after we finish closing the channel.
We should make sure to fire the Closed event once the channel is closed on both ends, and before the Close() or Dispose() method completes.
The text was updated successfully, but these errors were encountered:
We currently fire Closed event from
OnClose()
before we invoke theClose()
method.This is done to avoid a deadlock when
Close()
orDispose()
is invoked on the channel from an eventhandler for the Closed event.As it is right now, the Closed event is not garanteed to fire before the channel is disposed, and is not garanteed to fire after we finish closing the channel.
We should make sure to fire the Closed event once the channel is closed on both ends, and before the
Close()
orDispose()
method completes.The text was updated successfully, but these errors were encountered: