mirror of https://github.com/zlatinb/muwire
prevent exception if search tab is closed
parent
3261147ed5
commit
60bed8ad5a
|
@ -425,7 +425,10 @@ class MainFrameModel {
|
|||
|
||||
void onUIResultBatchEvent(UIResultBatchEvent e) {
|
||||
MVCGroup resultsGroup = results.get(e.uuid)
|
||||
resultsGroup?.model?.handleResultBatch(e.results)
|
||||
if (resultsGroup == null)
|
||||
return
|
||||
if (resultsGroup.isAlive())
|
||||
resultsGroup.model.handleResultBatch(e.results)
|
||||
}
|
||||
|
||||
void onDownloadStartedEvent(DownloadStartedEvent e) {
|
||||
|
|
Loading…
Reference in New Issue