     }
     
     @IBAction func refreshButtonPressed(sender: AnyObject) {
+        portal.stopSearchingForHosts()
         portal.beginSearchingForHosts()
-        dispatch_async(dispatch_get_main_queue(), {
-            self.roomsAvailableTableView.reloadData()
-        })
     }
 }
 

    @IBAction func unwindToRoomSelectionFromRoomView(segue: UIStoryboardSegue) {
        portal.connectionDelegate = self
        portal.disconnectFromRoom()
        portal.stopHosting()
        portal.beginSearchingForHosts()
    }
    
    override func prefersStatusBarHidden() -> Bool {


    override func viewDidLoad() {
        super.viewDidLoad()
//        roomsAvailableTableView.registerClass(UITableViewCell.self,
//                                              forCellReuseIdentifier: cellIdentifier)
        
        portal.connectionDelegate = self
        
