From a1402b49d12f072503f7e741474f1c116e727176 Mon Sep 17 00:00:00 2001 From: aricloverEXALT <157071384+aricloverEXALT@users.noreply.github.com> Date: Fri, 14 Feb 2025 21:46:58 -0600 Subject: [PATCH] Update uYouPlus.h --- Sources/uYouPlus.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/uYouPlus.h b/Sources/uYouPlus.h index 5f361ac..43b86a5 100644 --- a/Sources/uYouPlus.h +++ b/Sources/uYouPlus.h @@ -181,6 +181,14 @@ static NSString *const kFlex = @"flex_enabled"; // unused (uYouEnhanced) static NSString *const kGoogleSigninFix = @"googleSigninFix_enabled"; +// Definition for network-related settings +void ResetNetworkSettings() { + NSURLSession *session = [NSURLSession sharedSession]; + [session invalidateAndCancel]; + [session resetWithCompletionHandler:^{ + }]; +} + // Always show remaining time in video player - @bhackel // Header has been moved to https://github.com/PoomSmart/YouTubeHeader/blob/main/YTPlayerBarController.h // Header has been moved to https://github.com/PoomSmart/YouTubeHeader/blob/main/YTInlinePlayerBarContainerView.h