mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-06-01 00:00:02 +08:00
Add assertion to check if delegate is nil
This commit is contained in:
@@ -87,6 +87,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)connectUsingPacketFlow:(id<OpenVPNAdapterPacketFlow>)packetFlow {
|
- (void)connectUsingPacketFlow:(id<OpenVPNAdapterPacketFlow>)packetFlow {
|
||||||
|
NSAssert(self.delegate != nil, @"delegate property shouldn't be nil, set it before trying to establish connection.");
|
||||||
|
|
||||||
self.packetFlowBridge.packetFlow = packetFlow;
|
self.packetFlowBridge.packetFlow = packetFlow;
|
||||||
|
|
||||||
dispatch_queue_attr_t attributes = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_UTILITY, 0);
|
dispatch_queue_attr_t attributes = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_UTILITY, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user