Skip to content

Commit

Permalink
Dispose robot service correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aeshub committed Nov 14, 2023
1 parent 99b0018 commit 6687e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/Services/RobotService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using Api.Controllers.Models;
using Api.Database.Context;
using Api.Database.Models;
Expand Down Expand Up @@ -53,6 +52,7 @@ public RobotService(FlotillaDbContext context, ILogger<RobotService> logger, IRo
public void Dispose()
{
_robotSemaphore.Dispose();
GC.SuppressFinalize(this);
}

public async Task<Robot> Create(Robot newRobot)
Expand Down

0 comments on commit 6687e86

Please sign in to comment.