Skip to content

Commit

Permalink
Replace Handlers with coroutines
Browse files Browse the repository at this point in the history
  • Loading branch information
isaidamier committed Jul 19, 2021
1 parent dde21ed commit e3f5f41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class DeviceScanViewModel(app: Application) : AndroidViewModel(app) {
// Update the UI to indicate an active scan is starting
_viewState.value = ActiveScan

// Stop scanning after the scan period
// Stop scanning after the scan period specified
CoroutineScope(Dispatchers.Main).launch {
delay(SCAN_PERIOD)
stopScanning()
Expand Down

0 comments on commit e3f5f41

Please sign in to comment.