From b45c85986112de4f2cf0cc49e3d1633d2583e498 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 25 May 2022 15:07:38 -0700 Subject: [PATCH] =?UTF-8?q?[AltServer]=20Fixes=20disconnecting=20ALTWiredC?= =?UTF-8?q?onnection=E2=80=99s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ALTWiredConnection.disconnect() doesn’t do anything if ALTWiredConnection.isConnected == NO. The problem is, we never set .isConnected to YES in the first place…which means disconnect() never actually did anything. Whoops. --- AltServer/Connections/ALTWiredConnection.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AltServer/Connections/ALTWiredConnection.mm b/AltServer/Connections/ALTWiredConnection.mm index aa674063..6ad1f3f8 100644 --- a/AltServer/Connections/ALTWiredConnection.mm +++ b/AltServer/Connections/ALTWiredConnection.mm @@ -20,6 +20,8 @@ { _device = [device copy]; _connection = connection; + + self.connected = YES; } return self;