Skip to content

Commit

Permalink
Fix annoying warning: cannot modify client configuration after client…
Browse files Browse the repository at this point in the history
… has been used
  • Loading branch information
MihaelIsaev committed Feb 23, 2020
1 parent f51f6fe commit 21e25cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/FCM/FCM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 21e25cc

Please sign in to comment.