                 }
             }
         }
-        
+
+        self.loadingTop = false
+        self.loadingBottom = false
+
         self.tableView.reloadData()
     }
     

        self.requestPosts(["offset" : self.topOffset]) { (response: AnyObject!, error: NSError!) -> Void in
            if let e = error {
                println(e)
            } else {
                let posts = self.postsFromJSON(JSON(response))


                        self.bottomOffset += 20
                        self.reloadTable()
                    }
                }
            }
        }
