Rename exportManager method

This commit is contained in:
AsamK 2023-11-09 18:50:20 +01:00
parent 6b04197eaa
commit cbbfc4ea6e

View file

@ -373,7 +373,7 @@ public class DaemonCommand implements MultiLocalCommand, LocalCommand {
connection.exportObject(signalControl); connection.exportObject(signalControl);
c.addOnManagerAddedHandler(m -> { c.addOnManagerAddedHandler(m -> {
final var thread = exportMultiAccountManager(connection, m); final var thread = exportManager(connection, m);
try { try {
thread.join(); thread.join();
} catch (InterruptedException ignored) { } catch (InterruptedException ignored) {
@ -390,10 +390,7 @@ public class DaemonCommand implements MultiLocalCommand, LocalCommand {
} }
}); });
final var initThreads = c.getManagers() final var initThreads = c.getManagers().stream().map(m -> exportManager(connection, m)).toList();
.stream()
.map(m -> exportMultiAccountManager(connection, m))
.toList();
for (var t : initThreads) { for (var t : initThreads) {
try { try {
@ -414,7 +411,7 @@ public class DaemonCommand implements MultiLocalCommand, LocalCommand {
} }
} }
private Thread exportMultiAccountManager( private Thread exportManager(
final DBusConnection conn, final Manager m final DBusConnection conn, final Manager m
) { ) {
final var objectPath = DbusConfig.getObjectPath(m.getSelfNumber()); final var objectPath = DbusConfig.getObjectPath(m.getSelfNumber());