@@ -42,8 +42,7 @@ export class DevicesService extends EventEmitter implements Mobile.IDevicesServi
4242 private $androidEmulatorServices : Mobile . IEmulatorPlatformService ,
4343 private $androidEmulatorDiscovery : Mobile . IDeviceDiscovery ,
4444 private $emulatorHelper : Mobile . IEmulatorHelper ,
45- private $prompter : IPrompter ,
46- private $timers : ITimers ) {
45+ private $prompter : IPrompter ) {
4746 super ( ) ;
4847 this . attachToKnownDeviceDiscoveryEvents ( ) ;
4948 this . attachToKnownEmulatorDiscoveryEvents ( ) ;
@@ -293,7 +292,7 @@ export class DevicesService extends EventEmitter implements Mobile.IDevicesServi
293292 if ( ! this . deviceDetectionInterval ) {
294293 let isDeviceDetectionIntervalInProgress = false ;
295294
296- this . deviceDetectionInterval = this . $timers . setInterval ( async ( ) => {
295+ this . deviceDetectionInterval = setInterval ( async ( ) => {
297296 if ( isDeviceDetectionIntervalInProgress ) {
298297 return ;
299298 }
@@ -320,7 +319,7 @@ export class DevicesService extends EventEmitter implements Mobile.IDevicesServi
320319 @exported ( "devicesService" )
321320 public startEmulatorDetectionInterval ( opts : Mobile . IHasDetectionInterval = { } ) : void {
322321 let isEmulatorDetectionIntervalRunning = false ;
323- this . emulatorDetectionInterval = this . $timers . setInterval ( async ( ) => {
322+ this . emulatorDetectionInterval = setInterval ( async ( ) => {
324323 if ( isEmulatorDetectionIntervalRunning ) {
325324 return ;
326325 }
@@ -336,14 +335,14 @@ export class DevicesService extends EventEmitter implements Mobile.IDevicesServi
336335 @exported ( "devicesService" )
337336 public stopDeviceDetectionInterval ( ) : void {
338337 if ( this . deviceDetectionInterval ) {
339- this . $timers . clearInterval ( this . deviceDetectionInterval ) ;
338+ clearInterval ( this . deviceDetectionInterval ) ;
340339 }
341340 }
342341
343342 @exported ( "devicesService" )
344343 public stopEmulatorDetectionInterval ( ) : void {
345344 if ( this . emulatorDetectionInterval ) {
346- this . $timers . clearInterval ( this . emulatorDetectionInterval ) ;
345+ clearInterval ( this . emulatorDetectionInterval ) ;
347346 }
348347 }
349348
0 commit comments