From 6687e8689c957d4c41ed47560df09da0592b5f33 Mon Sep 17 00:00:00 2001 From: aestene Date: Mon, 13 Nov 2023 13:10:19 +0100 Subject: [PATCH] Dispose robot service correctly --- backend/api/Services/RobotService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/Services/RobotService.cs b/backend/api/Services/RobotService.cs index 2ea00d10e..f2112d4fb 100644 --- a/backend/api/Services/RobotService.cs +++ b/backend/api/Services/RobotService.cs @@ -1,5 +1,4 @@ using System.Diagnostics.CodeAnalysis; -using System.Globalization; using Api.Controllers.Models; using Api.Database.Context; using Api.Database.Models; @@ -53,6 +52,7 @@ public RobotService(FlotillaDbContext context, ILogger logger, IRo public void Dispose() { _robotSemaphore.Dispose(); + GC.SuppressFinalize(this); } public async Task Create(Robot newRobot)