bluetooth: Fix infinite loop
Bailing out early of the loop means the iter is never increased,
resulting in an infinite loop.
Fixes 26c2cb9f6
.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1165
This commit is contained in:
parent
e138b6e3af
commit
5067bda61a
@ -84,15 +84,14 @@ class Indicator extends PanelMenu.SystemIndicator {
|
||||
const isTrusted = this._model.get_value(iter,
|
||||
GnomeBluetooth.Column.TRUSTED);
|
||||
|
||||
if (!isPaired && !isTrusted)
|
||||
continue;
|
||||
|
||||
if (isPaired || isTrusted) {
|
||||
deviceInfos.push({
|
||||
connected: this._model.get_value(iter,
|
||||
GnomeBluetooth.Column.CONNECTED),
|
||||
name: this._model.get_value(iter,
|
||||
GnomeBluetooth.Column.ALIAS),
|
||||
});
|
||||
}
|
||||
|
||||
ret = this._model.iter_next(iter);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user