Skip to content

Commit 468dde7

Browse files
committed
feat: add Aborted status
1 parent d81cd18 commit 468dde7

File tree

1 file changed

+3
-1
lines changed
  • crates/bluetooth/src/device/windows

1 file changed

+3
-1
lines changed

crates/bluetooth/src/device/windows/watch.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ impl Watcher {
137137
// https://learn.microsoft.com/en-us/uwp/api/windows.devices.enumeration.devicewatcher?view=winrt-26100
138138
if matches!(
139139
status,
140-
DeviceWatcherStatus::Started | DeviceWatcherStatus::EnumerationCompleted
140+
DeviceWatcherStatus::Started
141+
| DeviceWatcherStatus::Aborted
142+
| DeviceWatcherStatus::EnumerationCompleted
141143
) {
142144
self.watcher.Stop()?;
143145
}

0 commit comments

Comments
 (0)