Browse Source

- Catching invalid_handle exception

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
7ea30a52f5
  1. 4
      src/GUI.cpp

4
src/GUI.cpp

@ -465,6 +465,7 @@ void GUI::updateDlList(){ @@ -465,6 +465,7 @@ void GUI::updateDlList(){
LCD_DownSpeed->display(tmp2); // DL LCD
// browse handles
foreach(h, handles){
try{
torrent_status torrentStatus = h.status();
QString fileName = QString(h.get_torrent_info().name().c_str());
if(!h.is_paused()){
@ -532,6 +533,9 @@ void GUI::updateDlList(){ @@ -532,6 +533,9 @@ void GUI::updateDlList(){
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
}
}
}catch(invalid_handle e){
continue;
}
}
}

Loading…
Cancel
Save