             }
             dispatch_async(dispatch_get_main_queue()) {
                 self.refreshControl.endRefreshing()
+                self.refreshingData = false
             }
         }
     }

                        self.emptyNotificationsView.hidden = false
                    }
                    dispatch_async(dispatch_get_main_queue()) {
                        MBProgressHUD.hideHUDForView(self.view, animated: true)
                        println("Counter = \(--self.hudCounter)")
                        self.tableView.reloadData()

            shouldPresentFutureEvents = true
            tableView.separatorColor = futureInvitations.count > 0 ?  UIColor.clearColor() : UIColor.clearColor()
            
            if !self.refreshingData {
                println("################################################## TRUE")
                self.refreshingData = true
                self.refreshData()
            }
            
        }
        
    }
