From f3fc33e3059d9600a4bb7158e44b6d003217bc39 Mon Sep 17 00:00:00 2001 From: "A. Parkos" <65038075+thuotdwz@users.noreply.github.com> Date: Tue, 19 May 2020 21:34:57 -0700 Subject: [PATCH] Remove code to shutdown EventLoopGroup in FluentQueuesDriver This will fix error message: ERROR: Cannot schedule tasks on an EventLoop that has already shut down. This will be upgraded to a forced crash in future SwiftNIO versions. when using Ctrl+C to shut down application. EventLoopGroup here is not owned by FluentQueuesDriver and used by other objects during shutdown procedure Fixes #6 --- Sources/QueuesFluentDriver/FluentQueuesDriver.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/Sources/QueuesFluentDriver/FluentQueuesDriver.swift b/Sources/QueuesFluentDriver/FluentQueuesDriver.swift index 1e438d1..6c9e6c2 100644 --- a/Sources/QueuesFluentDriver/FluentQueuesDriver.swift +++ b/Sources/QueuesFluentDriver/FluentQueuesDriver.swift @@ -49,7 +49,5 @@ extension FluentQueuesDriver: QueuesDriver { } public func shutdown() { - // What are we supposed to do here? - try? self.eventLoopGroup.syncShutdownGracefully() } }