File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
src/vs/platform/remoteTunnel/node Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -209,20 +209,18 @@ export class RemoteTunnelService extends Disposable implements IRemoteTunnelServ
209
209
this . _tunnelProcess = undefined ;
210
210
}
211
211
212
- if ( ! this . _mode . active ) {
213
- return ;
214
- }
215
-
216
- // Be careful to only uninstall the service if we're the ones who installed it:
217
- const needsServiceUninstall = this . _mode . asService ;
218
- this . setMode ( INACTIVE_TUNNEL_MODE ) ;
212
+ if ( this . _mode . active ) {
213
+ // Be careful to only uninstall the service if we're the ones who installed it:
214
+ const needsServiceUninstall = this . _mode . asService ;
215
+ this . setMode ( INACTIVE_TUNNEL_MODE ) ;
219
216
220
- try {
221
- if ( needsServiceUninstall ) {
222
- this . runCodeTunnelCommand ( 'uninstallService' , [ 'service' , 'uninstall' ] ) ;
217
+ try {
218
+ if ( needsServiceUninstall ) {
219
+ this . runCodeTunnelCommand ( 'uninstallService' , [ 'service' , 'uninstall' ] ) ;
220
+ }
221
+ } catch ( e ) {
222
+ this . _logger . error ( e ) ;
223
223
}
224
- } catch ( e ) {
225
- this . _logger . error ( e ) ;
226
224
}
227
225
228
226
try {
You can’t perform that action at this time.
0 commit comments