Explorar o código

2009-12-02 Geoff Norton <[email protected]>

	* VirtualMachineManager.cs: We might get a SocketException (interrupted)
	here, so lets just handle all Exceptions to our Accept pattern the same
	way

svn path=/trunk/mcs/; revision=147528
Geoff Norton %!s(int64=16) %!d(string=hai) anos
pai
achega
2d506c8137

+ 6 - 0
mcs/class/Mono.Debugger.Soft/Mono.Debugger/ChangeLog

@@ -1,3 +1,9 @@
+2009-12-02  Geoff Norton  <[email protected]>
+
+	* VirtualMachineManager.cs: We might get a SocketException (interrupted)
+	here, so lets just handle all Exceptions to our Accept pattern the same
+	way
+
 2009-12-01  Zoltan Varga  <[email protected]>
 
 	* VirtualMachine.cs (ErrorHandler): Handle NOT_SUSPENDED error code too.

+ 3 - 3
mcs/class/Mono.Debugger.Soft/Mono.Debugger/VirtualMachineManager.cs

@@ -30,7 +30,7 @@ namespace Mono.Debugger
 			Socket accepted = null;
 			try {
 				accepted = socket.Accept ();
-			} catch (ObjectDisposedException) {
+			} catch (Exception) {
 				throw;
 			}
 
@@ -111,7 +111,7 @@ namespace Mono.Debugger
 			if (con_sock != null) {
 				try {
 					con_acc = con_sock.Accept ();
-				} catch (ObjectDisposedException) {
+				} catch (Exception) {
 					try {
 						dbg_sock.Close ();
 					} catch {}
@@ -121,7 +121,7 @@ namespace Mono.Debugger
 						
 			try {
 				dbg_acc = dbg_sock.Accept ();
-			} catch (ObjectDisposedException) {
+			} catch (Exception) {
 				if (con_sock != null) {
 					try {
 						con_sock.Close ();