From 43085bc808057745b05cb0d01bed43e2810f9115 Mon Sep 17 00:00:00 2001 From: de4dot Date: Mon, 3 Oct 2011 10:04:33 +0200 Subject: [PATCH] Fix serialization problem when calling exit() --- de4dot.code/AssemblyClient/AssemblyClient.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/de4dot.code/AssemblyClient/AssemblyClient.cs b/de4dot.code/AssemblyClient/AssemblyClient.cs index b392a3df..81386777 100644 --- a/de4dot.code/AssemblyClient/AssemblyClient.cs +++ b/de4dot.code/AssemblyClient/AssemblyClient.cs @@ -19,6 +19,7 @@ using System; using System.Runtime.Remoting; +using System.Runtime.Serialization; using System.Threading; using AssemblyData; @@ -81,6 +82,9 @@ namespace de4dot.AssemblyClient { catch (RemotingException) { // Couldn't connect } + catch (SerializationException) { + // For this: "End of Stream encountered before parsing was completed." + } service = null; } if (loader != null) {