mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-08-26 13:42:37 +00:00
- Catching invalid_handle exception
This commit is contained in:
parent
a2c5afcf7c
commit
7ea30a52f5
@ -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(){
|
||||
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
||||
}
|
||||
}
|
||||
}catch(invalid_handle e){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user