Skip to content

Commit

Permalink
Fix respondsToSelector parametres
Browse files Browse the repository at this point in the history
  • Loading branch information
outspace committed Aug 24, 2023
1 parent ee9879a commit 3ea9983
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/platforms/ios/ios_controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,9 @@
NETunnelProviderSession *session = (NETunnelProviderSession *)m_currentTunnel.connection;

NSError *sendError = nil;
if ([session respondsToSelector:@selector(sendProviderMessage:responseHandler:)]) {
[session sendProviderMessage:data responseHandler:completionHandler error:&sendError];

if ([session respondsToSelector:@selector(sendProviderMessage:returnError:responseHandler:)]) {
[session sendProviderMessage:data returnError:&sendError responseHandler:completionHandler];
} else {
qDebug() << "Method sendProviderMessage:responseHandler:error: does not exist";
}
Expand Down

0 comments on commit 3ea9983

Please sign in to comment.