From 0a6a21e443fc56677d76ea9dacbb4f27b0b10314 Mon Sep 17 00:00:00 2001 From: Souryo Date: Sat, 18 Feb 2017 13:11:52 -0500 Subject: [PATCH] Fixed stack overflow crash --- GUI.NET/SingleInstance.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GUI.NET/SingleInstance.cs b/GUI.NET/SingleInstance.cs index 6a0001d0..afbc9809 100644 --- a/GUI.NET/SingleInstance.cs +++ b/GUI.NET/SingleInstance.cs @@ -119,7 +119,8 @@ namespace Mesen.GUI } catch(IOException) { //Pipe was broken } finally { - ListenForArguments(); + Thread.Sleep(10000); + Task.Run(() => this.ListenForArguments()); } } }