diff --git a/js/ui/mpris.js b/js/ui/mpris.js index 9eabe4431..23fca91b1 100644 --- a/js/ui/mpris.js +++ b/js/ui/mpris.js @@ -173,6 +173,11 @@ var MprisPlayer = class MprisPlayer { if (!this._mprisProxy.g_name_owner) this._close(); }); + // It is possible for the bus to disappear before the previous signal + // is connected, so we must ensure that the bus still exists at this + // point. + if (!this._mprisProxy.g_name_owner) + this._close(); } _onPlayerProxyReady() {