diff --git a/pom.xml b/pom.xml index 4370013822..1d39413abd 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.ghostchu.peerbanhelper peerbanhelper - 2.4 + 2.5 PeerBanHelper diff --git a/src/main/java/com/ghostchu/peerbanhelper/downloader/impl/transmission/Transmission.java b/src/main/java/com/ghostchu/peerbanhelper/downloader/impl/transmission/Transmission.java index 84e73a0482..52280f59d9 100644 --- a/src/main/java/com/ghostchu/peerbanhelper/downloader/impl/transmission/Transmission.java +++ b/src/main/java/com/ghostchu/peerbanhelper/downloader/impl/transmission/Transmission.java @@ -52,6 +52,10 @@ public String getName() { @Override public boolean login() { + RqSessionGet get = new RqSessionGet(List.of("version")); + try { + client.execute(get); // 执行任意 RPC 操作以刷新 session + }catch (Exception ignored){} return true; }