[Monodevelop-patches-list] r2743 - trunk/MonoDevelop/Core/src/MonoDevelop.Startup
Todd Berman <tberman@sevenl.net>
tberman at mono-cvs.ximian.com
Sun Aug 14 02:08:13 EDT 2005
Author: tberman
Date: 2005-08-14 02:08:13 -0400 (Sun, 14 Aug 2005)
New Revision: 2743
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Startup/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Startup/MonoDevelopMain.cs
Log:
2005-08-13 Todd Berman <tberman at off.net>
* MonoDevelopMain.cs: Fix the socket ObjectDisposed. Only to uncover
another ObjectDisposed, that I do not understand how to debug.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Startup/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Startup/ChangeLog 2005-08-14 04:21:05 UTC (rev 2742)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Startup/ChangeLog 2005-08-14 06:08:13 UTC (rev 2743)
@@ -1,3 +1,8 @@
+2005-08-13 Todd Berman <tberman at off.net>
+
+ * MonoDevelopMain.cs: Fix the socket ObjectDisposed. Only to uncover
+ another ObjectDisposed, that I do not understand how to debug.
+
2005-08-10 Ben Motmans <ben.motmans at gmail.com>
* MonoDevelop.Startup.mdp: references update
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Startup/MonoDevelopMain.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Startup/MonoDevelopMain.cs 2005-08-14 04:21:05 UTC (rev 2742)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Startup/MonoDevelopMain.cs 2005-08-14 06:08:13 UTC (rev 2743)
@@ -217,8 +217,14 @@
static void ListenCallback (IAsyncResult state)
{
- Socket client = ((Socket)state.AsyncState).EndAccept (state);
- ((Socket)state.AsyncState).BeginAccept (new AsyncCallback (ListenCallback), state.AsyncState);
+ Socket sock = (Socket)state.AsyncState;
+
+ if (!sock.Connected) {
+ return;
+ }
+
+ Socket client = sock.EndAccept (state);
+ ((Socket)state.AsyncState).BeginAccept (new AsyncCallback (ListenCallback), sock);
byte[] buf = new byte[1024];
client.Receive (buf);
foreach (string filename in Encoding.UTF8.GetString (buf).Split ('\n')) {
More information about the Monodevelop-patches-list
mailing list