File tree 1 file changed +5
-3
lines changed
components/gitpod-protocol/src
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -383,10 +383,12 @@ export class GitpodCompositeClient<Client extends GitpodClient> implements Gitpo
383
383
384
384
public registerClient ( client : Partial < Client > ) : Disposable {
385
385
this . clients . push ( client ) ;
386
- const index = this . clients . length ;
387
386
return {
388
387
dispose : ( ) => {
389
- this . clients . slice ( index , 1 ) ;
388
+ const index = this . clients . indexOf ( client ) ;
389
+ if ( index > - 1 ) {
390
+ this . clients . splice ( index , 1 ) ;
391
+ }
390
392
}
391
393
}
392
394
}
@@ -576,7 +578,7 @@ export class WorkspaceInstanceUpdateListener {
576
578
}
577
579
578
580
export interface GitpodServiceOptions {
579
- onReconnect ?: ( ) => ( void | Promise < void > )
581
+ onReconnect ?: ( ) => ( void | Promise < void > )
580
582
}
581
583
582
584
export class GitpodServiceImpl < Client extends GitpodClient , Server extends GitpodServer > {
You can’t perform that action at this time.
0 commit comments