mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 20:57:22 +01:00
add delay ondisconnectasync and throw proper exceptions
This commit is contained in:
parent
c7dccc7e58
commit
149a67fd6f
1 changed files with 4 additions and 2 deletions
|
|
@ -97,10 +97,12 @@ public class SignalRLimitFilter : IHubFilter
|
|||
try
|
||||
{
|
||||
await next(context, exception);
|
||||
await Task.Delay(250);
|
||||
}
|
||||
catch
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.LogWarning(exception, "Error on OnDisconnectedAsync");
|
||||
logger.LogWarning(exception, "InitialException on OnDisconnectedAsync");
|
||||
logger.LogWarning(e, "ThrownException on OnDisconnectedAsync");
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue