From 21e25cc97afe37eb3ad7a64c4f6a7722f0229eab Mon Sep 17 00:00:00 2001 From: Mihael Isaev Date: Sun, 23 Feb 2020 14:47:03 +0400 Subject: [PATCH] Fix annoying warning: cannot modify client configuration after client has been used --- Sources/FCM/FCM.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/FCM/FCM.swift b/Sources/FCM/FCM.swift index a9ba106..1ee4fb2 100644 --- a/Sources/FCM/FCM.swift +++ b/Sources/FCM/FCM.swift @@ -34,7 +34,9 @@ public struct FCM { public init(application: Application) { self.application = application - application.client.configuration.ignoreUncleanSSLShutdown = true + if !application.client.configuration.ignoreUncleanSSLShutdown { + application.client.configuration.ignoreUncleanSSLShutdown = true + } self.client = application.client.http } }