Skip to content

Commit

Permalink
Merge pull request #57 from qkzhu/hotfix/fix-urlsessionconfig-crash
Browse files Browse the repository at this point in the history
one of the option to fix #56
  • Loading branch information
gamada-de authored Feb 4, 2022
2 parents a170134 + 7a9d10d commit 422efa5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DBDebugToolkit/Classes/Network/DBNetworkToolkit.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ @implementation DBNetworkToolkit
#pragma mark - Initialization

+ (void)initialize {
if (self == [DBNetworkToolkit class]) {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
DBNetworkURLProtocolClass = [DBURLProtocol class];
}
});
}

- (instancetype)init {
Expand Down

0 comments on commit 422efa5

Please sign in to comment.