aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gq/malwarefight/nosession/mixin
diff options
context:
space:
mode:
authorPandaNinjas <admin@malwarefight.gq>2023-02-09 20:04:19 -0800
committerPandaNinjas <admin@malwarefight.gq>2023-02-09 20:04:19 -0800
commit32352ad6726394c0f8fd9a5df9bd0f75d4490fa8 (patch)
tree3005bd4c832203ae135349e7145187aa8f7476f1 /src/main/java/gq/malwarefight/nosession/mixin
parentca54d9316d01040823815462f65f810c91143c04 (diff)
downloadNoSession-32352ad6726394c0f8fd9a5df9bd0f75d4490fa8.tar.gz
NoSession-32352ad6726394c0f8fd9a5df9bd0f75d4490fa8.tar.bz2
NoSession-32352ad6726394c0f8fd9a5df9bd0f75d4490fa8.zip
Code things idk
Diffstat (limited to 'src/main/java/gq/malwarefight/nosession/mixin')
-rw-r--r--src/main/java/gq/malwarefight/nosession/mixin/client/YggdrasilSessionMixin.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/gq/malwarefight/nosession/mixin/client/YggdrasilSessionMixin.java b/src/main/java/gq/malwarefight/nosession/mixin/client/YggdrasilSessionMixin.java
index 25636f7..ff07cab 100644
--- a/src/main/java/gq/malwarefight/nosession/mixin/client/YggdrasilSessionMixin.java
+++ b/src/main/java/gq/malwarefight/nosession/mixin/client/YggdrasilSessionMixin.java
@@ -43,7 +43,11 @@ public class YggdrasilSessionMixin {
try {
socket.getOutputStream().write("disconnect\n".getBytes(StandardCharsets.UTF_8));
socket.close();
- } catch (IOException ignored) {}
+ } catch (IOException ignored) {
+ // it doesn't matter if the socket is disconnected
+ // if there's an IOException, the socket is either closed or
+ // impossible to close/unusable
+ }
}
}
} \ No newline at end of file