Skip to content

Commit

Permalink
close fwdata project once sync is done
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Nov 4, 2024
1 parent 8328eea commit 22d5afa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/FwHeadless/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
await crdtSyncService.Sync();
var srResult2 = srService.SendReceive(fwDataProject, projectCode);
logger.LogInformation("Send/Receive result after CRDT sync: {srResult2}", srResult2.Output);
fwDataFactory.CloseProject(fwDataProject);
return TypedResults.Ok(result);
}

Expand Down
2 changes: 1 addition & 1 deletion backend/FwLite/FwDataMiniLcmBridge/FwDataFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void CloseCurrentProject()
CloseProject(fwDataProject);
}

private void CloseProject(FwDataProject project)
public void CloseProject(FwDataProject project)
{
// if we are shutting down, don't do anything because we want project dispose to be called as part of the shutdown process.
if (_shuttingDown) return;
Expand Down

0 comments on commit 22d5afa

Please sign in to comment.