File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/org/cryptomator/linux/keychain Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,20 +76,20 @@ public ConnectedWallet(DBusConnection connection) {
76
76
77
77
static Optional <ConnectedWallet > connect () {
78
78
try {
79
- return Optional .of (new ConnectedWallet (getConnection ()));
79
+ return Optional .of (new ConnectedWallet (getNewConnection ()));
80
80
} catch (DBusException e ) {
81
81
LOG .warn ("Connecting to D-Bus failed." , e );
82
82
return Optional .empty ();
83
83
}
84
84
}
85
85
86
- private static DBusConnection getConnection () throws DBusException {
86
+ private static DBusConnection getNewConnection () throws DBusException {
87
87
try {
88
- return DBusConnection .getConnection (DBusConnection .DBusBusType .SESSION );
88
+ return DBusConnection .newConnection (DBusConnection .DBusBusType .SESSION );
89
89
} catch (DBusConnectionException ce ) {
90
90
LOG .warn ("SESSION DBus not found, falling back to SYSTEM DBus" );
91
91
try {
92
- return DBusConnection .getConnection (DBusConnection .DBusBusType .SYSTEM );
92
+ return DBusConnection .newConnection (DBusConnection .DBusBusType .SYSTEM );
93
93
} catch (DBusException e ) {
94
94
throw e ;
95
95
}
You can’t perform that action at this time.
0 commit comments