mirror of
https://github.com/yattee/yattee.git
synced 2026-02-21 18:29:44 +00:00
The background URLSession could be in an invalid state when downloadTask(with:) is called, because invalidateAndCancel() is asynchronous internally. This adds an ObjC exception handler to catch NSExceptions from CFNetwork, nil guards on the session, and safer session lifecycle management (nil after invalidation, finishTasksAndInvalidate for cellular toggle).
13 lines
237 B
Objective-C
13 lines
237 B
Objective-C
//
|
|
// Yattee-Bridging-Header.h
|
|
// Yattee
|
|
//
|
|
// Bridges C code to Swift
|
|
//
|
|
|
|
#ifndef Yattee_Bridging_Header_h
|
|
#define Yattee_Bridging_Header_h
|
|
#import "SMBBridge.h"
|
|
#import "ObjCExceptionHandler.h"
|
|
#endif /* Yattee_Bridging_Header_h */
|