mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] tooling: debug tool logged too many scheduler stops
This was caused by additional calls to flush (because of connected components) closes #533
This commit is contained in:
+6
-2
@@ -107,11 +107,15 @@
|
||||
let start = owl.Component.scheduler.start;
|
||||
let stop = owl.Component.scheduler.stop;
|
||||
owl.Component.scheduler.start = function () {
|
||||
console.log(`${prefix} scheduler: start running tasks queue`);
|
||||
if (!this.isRunning) {
|
||||
console.log(`${prefix} scheduler: start running tasks queue`);
|
||||
}
|
||||
start.call(this);
|
||||
};
|
||||
owl.Component.scheduler.stop = function () {
|
||||
console.log(`${prefix} scheduler: stop running tasks queue`);
|
||||
if (this.isRunning) {
|
||||
console.log(`${prefix} scheduler: stop running tasks queue`);
|
||||
}
|
||||
stop.call(this);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user