From 0035de4ab70291a0f739c157a27d63a9dbeabd42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 3 Oct 2014 14:46:36 +0200 Subject: [PATCH] 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. --- js/ui/screencast.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/screencast.js b/js/ui/screencast.js index e2fb8c8de..d1ccc5be7 100644 --- a/js/ui/screencast.js +++ b/js/ui/screencast.js @@ -68,8 +68,8 @@ const ScreencastService = new Lang.Class({ if (Main.sessionMode.allowScreencast) return; - this._recorders.clear(); - this.emit('updated'); + for (let sender of this._recorders.keys()) + this._stopRecordingForSender(sender); }, _onNameVanished: function(connection, name) {