mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-15 00:44:22 +09:00
commandLineUtil: toggle _updated after the callback returns
The callback can be used to process the received data a single time, and in that case this._updated should only be toggled after the callback has completed, since other methods may depend on its side effects. In other scenarios the order does not matter (either way).
This commit is contained in:
@@ -26,8 +26,8 @@ var CommandLineUtil = class {
|
||||
} catch (e) {
|
||||
logError(e);
|
||||
} finally {
|
||||
this._updated = true;
|
||||
callback();
|
||||
this._updated = true;
|
||||
}
|
||||
});
|
||||
} catch(e){
|
||||
|
||||
Reference in New Issue
Block a user