GNOME Bugzilla – Bug 777934
background: Disconnect from 'prepare-for-sleep' signal
Last modified: 2017-01-31 13:01:39 UTC
.
Created attachment 344531 [details] [review] background: Remove a couple of unused variables Nothing uses these.
Created attachment 344532 [details] [review] background: Disconnect from 'prepare-for-sleep' signal This signal connection was keeping Background instances from being garbage collected.
Review of attachment 344532 [details] [review]: Good catch ::: js/ui/background.js @@ +258,1 @@ LoginManager.getLoginManager().connect('prepare-for-sleep', Icky indentation - either increase the indentation of the block, or use something like: let loginManager = LoginManager.getLoginManager(); this._preparedForSleepId = loginManager.connect('prepare-for-sleep', ...
Review of attachment 344531 [details] [review]: Sure
Pushing with the suggested indentation. Attachment 344531 [details] pushed as 9f6f480 - background: Remove a couple of unused variables Attachment 344532 [details] pushed as b1dcea7 - background: Disconnect from 'prepare-for-sleep' signal