diff --git a/client/platforms/ios/ios_controller.mm b/client/platforms/ios/ios_controller.mm index d514d7488..d1c2e3c8c 100644 --- a/client/platforms/ios/ios_controller.mm +++ b/client/platforms/ios/ios_controller.mm @@ -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"; }