public static void removeConnection(DebugConnection c) { lock (mConnectionList.SyncRoot) { int i = mConnectionList.IndexOf(c); if (i > 0) { mTextCallback("<debug>Deleting debug connection [" + c.getID().ToString() + "]</debug>"); mConnectionList.RemoveAt(i); } } }