diff --git a/MTProtoKit/MTTcpTransport.m b/MTProtoKit/MTTcpTransport.m index e3e4cf0519..3efa4a55a6 100644 --- a/MTProtoKit/MTTcpTransport.m +++ b/MTProtoKit/MTTcpTransport.m @@ -221,6 +221,7 @@ static const NSTimeInterval MTTcpTransportSleepWatchdogTimeout = 60.0; { [[MTTcpTransport tcpTransportQueue] dispatchOnQueue:^ { +#if !TARGET_OS_IPHONE if (_sleepWatchdogTimer == nil) { _sleepWatchdogTimerLastTime = MTAbsoluteSystemTime(); @@ -243,6 +244,7 @@ static const NSTimeInterval MTTcpTransportSleepWatchdogTimeout = 60.0; } queue:[MTTcpConnection tcpQueue].nativeQueue]; [_sleepWatchdogTimer start]; } +#endif }]; }