Emit removeService() for all discovered services when browser is stopped.

This commit is contained in:
Jonathan Bagg
2017-10-09 21:23:00 -04:00
parent ab0fae957d
commit 2622544691
4 changed files with 11 additions and 3 deletions

View File

@ -208,8 +208,10 @@ public:
browser = NULL;
QMap<QString, QZeroConfService *>::iterator i;
for (i = pub->services.begin(); i != pub->services.end(); i++)
for (i = pub->services.begin(); i != pub->services.end(); i++) {
emit pub->serviceRemoved(*i);
delete *i;
}
pub->services.clear();
QMap<QString, AvahiServiceResolver *>::iterator r;