mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Implement multi account commands for dbus client
This commit is contained in:
parent
00cda598c8
commit
805f976d9e
12 changed files with 335 additions and 29 deletions
|
@ -614,7 +614,7 @@ public class DbusManagerImpl implements Manager {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
public void close() {
|
||||
synchronized (this) {
|
||||
this.notify();
|
||||
}
|
||||
|
@ -665,9 +665,9 @@ public class DbusManagerImpl implements Manager {
|
|||
return string == null ? "" : string;
|
||||
}
|
||||
|
||||
private <T extends DBusInterface> T getRemoteObject(final DBusPath devicePath, final Class<T> type) {
|
||||
private <T extends DBusInterface> T getRemoteObject(final DBusPath path, final Class<T> type) {
|
||||
try {
|
||||
return connection.getRemoteObject(DbusConfig.getBusname(), devicePath.getPath(), type);
|
||||
return connection.getRemoteObject(DbusConfig.getBusname(), path.getPath(), type);
|
||||
} catch (DBusException e) {
|
||||
throw new AssertionError(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue