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



commit 0035de4ab70291a0f739c157a27d63a9dbeabd42
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]