From b94cddf64c7c555ed0167136cacd222cde30c509 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Fri, 31 May 2024 20:04:17 +0200 Subject: [PATCH] make altcontrol not auto disconnect lmao --- .../com/baseband/client/event/remote/RemoteEventManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/src/main/java/com/baseband/client/event/remote/RemoteEventManager.java b/Client/src/main/java/com/baseband/client/event/remote/RemoteEventManager.java index f41eb1b..4700c3b 100644 --- a/Client/src/main/java/com/baseband/client/event/remote/RemoteEventManager.java +++ b/Client/src/main/java/com/baseband/client/event/remote/RemoteEventManager.java @@ -35,7 +35,8 @@ public class RemoteEventManager { public void connect(@Nullable String ip) { try { - end(); + if(isConnected()) + end(); server = new ServerSocket(Setup.Port); initServer(); } catch (IOException e) {