From 3403d289a76b02e153b0160bbca5bf5353383c42 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 20 Aug 2021 17:57:44 -0400 Subject: [PATCH] Fail silently if Discord socket cannot be opened on Windows. --- src/discord.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/discord.cpp b/src/discord.cpp index 3c01e1ac..6c201f8b 100644 --- a/src/discord.cpp +++ b/src/discord.cpp @@ -111,7 +111,8 @@ static void run() { const char* path = "\\\\?\\pipe\\discord-ipc-0"; int fd = open(path, O_RDWR | O_APPEND); if (fd < 0) { - WARN("Could not open Discord socket"); + // Fail silently since this just means Discord isn't open. + // WARN("Could not open Discord socket"); return; } DEFER({close(fd);});