diff --git a/MTProtoKit/MTTcpConnection.m b/MTProtoKit/MTTcpConnection.m index 7c64dada02..f019c98e0c 100644 --- a/MTProtoKit/MTTcpConnection.m +++ b/MTProtoKit/MTTcpConnection.m @@ -607,7 +607,7 @@ struct ctr_state { if (MTLogEnabled()) { MTLog(@"[MTTcpConnection#%x response timeout]", (int)self); } - [self stop]; + [self closeAndNotifyWithError:true]; } - (void)socket:(GCDAsyncSocket *)__unused socket didReadPartialDataOfLength:(NSUInteger)partialLength tag:(long)__unused tag