1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix UnhandledPromiseRejectionWarning in KubeApi.watch (#4919)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-02-22 13:34:49 -05:00 committed by GitHub
parent 7c9ec87b3c
commit 9c604dcfa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -671,7 +671,9 @@ export class KubeApi<T extends KubeObject> {
callback(null, error); callback(null, error);
}); });
return abortController.abort; return () => {
abortController.abort();
};
} }
protected modifyWatchEvent(event: IKubeWatchEvent<KubeJsonApiData>) { protected modifyWatchEvent(event: IKubeWatchEvent<KubeJsonApiData>) {