Azure / azure-signalr

Azure SignalR Service SDK for .NET

Home Page:https://aka.ms/signalr-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`OnDisconnect` will not be triggered when using Azure AD

terencefan opened this issue · comments

The syncTimer in ServiceConnectionBase.cs can be disposed unexpectedly when getting Azure AD token fails, which causes the syncTimer?.Stop() throws an ObjectDisposedException.

This exception then prevents the CleanupClientConnections() from being executed, results in the missing of OnDisconnect events.

The next version of the SDK will include a retry mechanism.