The `file_loading` function is called deferred by asyncio, and can thus be called when the operator has already stopped loading. This is fixed by not referring to `self` in that function, and taking the logger from the outer scope.
The `file_loading` function is called deferred by asyncio, and can thus be called when the operator has already stopped loading. This is fixed by not referring to `self` in that function, and taking the logger from the outer scope.