             if UIDisabled {
                 UIApplication.sharedApplication().endIgnoringInteractionEvents()
             }
-
+            
             var animationDuration: Double!
             if success {
                 animationDuration = 0.5

                textLabel.text = Settings.CLAFailText
            }
            addSubview(icon)

            if animated {
                icon.alpha = 0
                activityView.stopAnimating()

            return false
        }
        
        if !NSThread.currentThread().isMainThread {
            dispatch_async(dispatch_get_main_queue()) {
                instance?.hideLoadingActivity(success: success, animated: animated)
            }
        } else {
            instance?.hideLoadingActivity(success: success, animated: animated)
        }
        
        print("instance is not nil, hiding current one")
        return true
    }
