From 70a493e89a0c3c8823686a39bed02ecc0c1886c8 Mon Sep 17 00:00:00 2001 From: BernardoGiordano Date: Wed, 24 Jul 2019 19:53:08 +0200 Subject: [PATCH] This makes it crash --- switch/source/util.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/switch/source/util.cpp b/switch/source/util.cpp index cda5a1e..942ccc3 100644 --- a/switch/source/util.cpp +++ b/switch/source/util.cpp @@ -30,7 +30,7 @@ void servicesExit(void) { ftp_exit(); nifmExit(); - socketExit(); + // socketExit(); freeIcons(); if (g_notificationLedAvailable) { @@ -56,6 +56,7 @@ Result servicesInit(void) // debug Result socinit = 0; if ((socinit = socketInitializeDefault()) == 0) { + ATEXIT(socketExit); // nxlinkStdio(); } else {