mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 17:22:51 -05:00
fix sub leak (#9709)
This commit is contained in:
@@ -10,7 +10,9 @@ import { IDisposable, Disposable } from 'vs/base/common/lifecycle';
|
||||
|
||||
export function subscriptionToDisposable(sub: Subscription): IDisposable {
|
||||
return {
|
||||
dispose: sub.unsubscribe
|
||||
dispose: () => {
|
||||
sub.unsubscribe();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user