Skip to content

Commit

Permalink
Move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Dec 20, 2024
1 parent 6b987b1 commit 4c55686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/FwLite/LocalWebApp/Hubs/FwDataMiniLcmHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public override async Task OnConnectedAsync()

public override async Task OnDisconnectedAsync(Exception? exception)
{
//todo if multiple clients are connected, this will close the project for all of them.
var project = context.Project;
if (project is null)
{
throw new InvalidOperationException("No project is set in the context.");
}
//todo if multiple clients are connected, this will close the project for all of them.
fwDataFactory.CloseProject(project);

if (exception is LcmFileLockedException)
Expand Down

0 comments on commit 4c55686

Please sign in to comment.