Skip to content

Commit d17cf80

Browse files
danielstuart14qdot
authored andcommitted
fix: winrt: Return error when discovering services fails
Prior to this commit, the `discover_services` method would return `Ok(())` even if the underlying calls had failed.
1 parent 150dc19 commit d17cf80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/winrtble/peripheral.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ impl ApiPeripheral for Peripheral {
455455
}
456456
Err(e) => {
457457
error!("get_characteristics_async {:?}", e);
458+
return Err(e);
458459
}
459460
}
460461
}

0 commit comments

Comments
 (0)