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:
parent
7c9ec87b3c
commit
9c604dcfa1
@ -671,7 +671,9 @@ export class KubeApi<T extends KubeObject> {
|
||||
callback(null, error);
|
||||
});
|
||||
|
||||
return abortController.abort;
|
||||
return () => {
|
||||
abortController.abort();
|
||||
};
|
||||
}
|
||||
|
||||
protected modifyWatchEvent(event: IKubeWatchEvent<KubeJsonApiData>) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user