[bluetooth.bluez] fix UnsatisfiedLinkException on Windows (#17107)

Signed-off-by: AndrewFG <software@whitebear.ch>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Andrew Fiddian-Green 2024-07-21 10:12:58 +01:00 committed by Ciprian Pascu
parent 2a6a09b803
commit 36aaa5488d

View File

@ -81,7 +81,7 @@ public class DeviceManagerFactory {
// Exception caused by first call to the library // Exception caused by first call to the library
try { try {
return DeviceManager.createInstance(false); return DeviceManager.createInstance(false);
} catch (DBusException ex) { } catch (DBusException | UnsatisfiedLinkError ex) {
// we might be on a system without DBus, such as macOS or Windows // we might be on a system without DBus, such as macOS or Windows
logger.debug("Failed to initialize DeviceManager: {}", ex.getMessage()); logger.debug("Failed to initialize DeviceManager: {}", ex.getMessage());
return null; return null;