]> git.saurik.com Git - cydia.git/commitdiff
Debugging aid for {retain,release}NetworkActivityIndicator.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 23 Feb 2011 11:01:47 +0000 (03:01 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 23 Feb 2011 11:01:47 +0000 (03:01 -0800)
MobileCydia.mm

index 948bb60bc7cae3cee3456ce54d2d5602af0b2460..8227e358729fb7c3bb07ae931719f63a197c8571 100644 (file)
@@ -8991,11 +8991,20 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 - (void) retainNetworkActivityIndicator {
     if (activity_++ == 0)
         [self setNetworkActivityIndicatorVisible:YES];
+
+#if TraceLogging
+    NSLog(@"retainNetworkActivityIndicator->%d", activity_);
+#endif
 }
 
 - (void) releaseNetworkActivityIndicator {
     if (--activity_ == 0)
         [self setNetworkActivityIndicatorVisible:NO];
+
+#if TraceLogging
+    NSLog(@"releaseNetworkActivityIndicator->%d", activity_);
+#endif
+
 }
 
 - (void) cancelAndClear:(bool)clear {