mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Merge pull request #34 from bitstadium/nitpicks
don't let messages pile up
This commit is contained in:
commit
001927f514
@ -859,6 +859,7 @@
|
|||||||
|
|
||||||
- (void)submitPendingMessages {
|
- (void)submitPendingMessages {
|
||||||
if (_networkRequestInProgress) {
|
if (_networkRequestInProgress) {
|
||||||
|
[[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(submitPendingMessages) object:nil];
|
||||||
[self performSelector:@selector(submitPendingMessages) withObject:nil afterDelay:2.0f];
|
[self performSelector:@selector(submitPendingMessages) withObject:nil afterDelay:2.0f];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user