beginningLoading should not be called multiple times

This commit is contained in:
Suresh, Kamlesh 2019-09-26 17:01:27 -04:00
parent 14a06fde09
commit a92f76c18f

View File

@ -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];