X-Git-Url: https://git.pterodactylus.net/?p=xudocci.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fxdcc%2Fcore%2FCore.java;h=5b1b12d865893e29636c6ed0a32ecd3f222ca72b;hp=fab43ab74284576ab5bae5b9c266a982741279e1;hb=4df55ce548d957450159555f04f6b79c08a9fb69;hpb=5e7f77e44cacc40da04ac9f744566de0710b12a1 diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index fab43ab..5b1b12d 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -202,7 +202,7 @@ public class Core extends AbstractExecutionThreadService { Connection connection = entry.getValue(); return new ConnectedNetwork(network, connection.hostname(), connection.port(), - connection.getUptime().get(), + connection.getUptime().orElse(Duration.ofSeconds(0)), connection.nickname(), channels.stream() .filter((channel) -> channel.network()