summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--JuickPush/NotificationService.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/JuickPush/NotificationService.m b/JuickPush/NotificationService.m
index 82dead8..afeec55 100644
--- a/JuickPush/NotificationService.m
+++ b/JuickPush/NotificationService.m
@@ -23,7 +23,7 @@
NSURL *avatarURL = [NSURL URLWithString:request.content.userInfo[@"avatarUrl"]];
- NSURLSession * downloadSession = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
+ NSURLSession* downloadSession = [NSURLSession sharedSession];
[[downloadSession downloadTaskWithURL:avatarURL completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {
if (!error) {