removed unnecessary time gap prone to bug
This commit is contained in:
@@ -32,18 +32,6 @@ public class WhiteboardManager
|
|||||||
_whiteboards.TryRemove(whiteboardId, out _);
|
_whiteboards.TryRemove(whiteboardId, out _);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task RefreshWhiteboard(Guid whiteboardId)
|
|
||||||
{
|
|
||||||
var whiteboard = GetWhiteboard(whiteboardId);
|
|
||||||
|
|
||||||
if (whiteboard is not null)
|
|
||||||
{
|
|
||||||
RemoveWhiteboard(whiteboardId);
|
|
||||||
}
|
|
||||||
|
|
||||||
await LoadWhiteboard(whiteboardId);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Whiteboard? GetWhiteboard(Guid whiteboardId)
|
public Whiteboard? GetWhiteboard(Guid whiteboardId)
|
||||||
{
|
{
|
||||||
return _whiteboards.GetValueOrDefault(whiteboardId);
|
return _whiteboards.GetValueOrDefault(whiteboardId);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public class RtErrorHandleStrategy : IErrorMessageHandleStrategy
|
|||||||
|
|
||||||
public async Task Handle(ErrorMessage message, CancellationToken cancellationToken)
|
public async Task Handle(ErrorMessage message, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
await _whiteboardManager.RefreshWhiteboard(message.WhiteboardId);
|
await _whiteboardManager.LoadWhiteboard(message.WhiteboardId);
|
||||||
|
|
||||||
var whiteboard = _whiteboardManager.GetWhiteboard(message.WhiteboardId)!;
|
var whiteboard = _whiteboardManager.GetWhiteboard(message.WhiteboardId)!;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user