[gnome-shell/wip/sass] screencast: Properly stop all recordings on session mode changes



commit 9f6aac8220d85946a173a326ec3c77274f323440
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Oct 3 14:46:36 2014 +0200

    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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/screencast.js b/js/ui/screencast.js
index e2fb8c8..d1ccc5b 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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]