don't let messages pile up

This commit is contained in:
Stephan Diederich 2013-07-16 11:54:36 +02:00
parent c95d80ffd8
commit 150b56be6d

View File

@ -859,6 +859,7 @@
- (void)submitPendingMessages {
if (_networkRequestInProgress) {
[[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(submitPendingMessages) object:nil];
[self performSelector:@selector(submitPendingMessages) withObject:nil afterDelay:2.0f];
return;
}