beginningLoading should not be called multiple times
This commit is contained in:
parent
14a06fde09
commit
a92f76c18f
@ -63,14 +63,14 @@
|
||||
if (self.loadingViewController) {
|
||||
self.loadCount++;
|
||||
|
||||
// Notify we are beginning the laod
|
||||
if ([[MVMCoreObject sharedInstance].loadingProtocol respondsToSelector:@selector(beginningLoading)]) {
|
||||
[[MVMCoreObject sharedInstance].loadingProtocol beginningLoading];
|
||||
}
|
||||
|
||||
// If we are already waiting to animate or animating in, do nothing.
|
||||
if (!self.animationTimer && !self.animatingIn) {
|
||||
|
||||
// Notify we are beginning the laod
|
||||
if ([[MVMCoreObject sharedInstance].loadingProtocol respondsToSelector:@selector(beginningLoading)]) {
|
||||
[[MVMCoreObject sharedInstance].loadingProtocol beginningLoading];
|
||||
}
|
||||
|
||||
// Restarts the loading animation.
|
||||
[self.loadingViewController startLoading];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user