screencast: Properly stop all recordings on session mode changes

We currently just clear out the map of recorders (which results
in the top bar indicator to be hidden), but don't stop the actual
recordings.
Spotted by Adel Gadllah on IRC.
This commit is contained in:
Florian Müllner 2014-10-03 14:46:36 +02:00
parent 28552d4b38
commit 0035de4ab7

View File

@ -68,8 +68,8 @@ const ScreencastService = new Lang.Class({
if (Main.sessionMode.allowScreencast) if (Main.sessionMode.allowScreencast)
return; return;
this._recorders.clear(); for (let sender of this._recorders.keys())
this.emit('updated'); this._stopRecordingForSender(sender);
}, },
_onNameVanished: function(connection, name) { _onNameVanished: function(connection, name) {