mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] move error handling out of fiber, fix complicated mounted issues
This commit is contained in:
committed by
Lucas Perais - lpe@odoo
parent
240259568e
commit
b3fb9a35bf
@@ -1,5 +1,5 @@
|
||||
import { Fiber, MountFiber, RootFiber } from "./fibers";
|
||||
import { fibersInError } from "./error_handling";
|
||||
import { Fiber, RootFiber } from "./fibers";
|
||||
import { STATUS } from "./status";
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -44,9 +44,6 @@ export class Scheduler {
|
||||
const hasError = fibersInError.has(fiber);
|
||||
if (hasError && fiber.counter !== 0) {
|
||||
this.tasks.delete(fiber);
|
||||
if (fiber instanceof MountFiber) {
|
||||
fiber.reject(fibersInError.get(fiber));
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (fiber.node.status === STATUS.DESTROYED) {
|
||||
|
||||
Reference in New Issue
Block a user