Skip to content
Browse files

Small fix.

svn path=/trunk/debugger/; revision=139494
  • Loading branch information...
1 parent 875c967 commit 6531ee2cbdedbd09c18e23f6bdc9e169f789fbb3 Martin Baulig committed
Showing with 6 additions and 4 deletions.
  1. +6 −4 classes/DebuggerSession.cs
View
10 classes/DebuggerSession.cs
@@ -605,19 +605,19 @@ public void AddEvent (Event handle)
public void ActivateEventAsync (Event handle)
{
- AsyncActivateOrDeactivateEvent (handle, true);
+ ActivateOrDeactivateEventAsync (handle, true);
}
public void DeactivateEventAsync (Event handle)
{
- AsyncActivateOrDeactivateEvent (handle, false);
+ ActivateOrDeactivateEventAsync (handle, false);
}
- void AsyncActivateOrDeactivateEvent (Event handle, bool activate)
+ public bool ActivateOrDeactivateEventAsync (Event handle, bool activate)
{
lock (this) {
if (!handle.NeedsActivation || (activate == handle.IsActivated))
- return;
+ return false;
var action = activate ? BreakpointHandle.Action.Insert :
BreakpointHandle.Action.Remove;
@@ -627,6 +627,8 @@ void AsyncActivateOrDeactivateEvent (Event handle, bool activate)
pending_bpts [breakpoint] = action;
else
pending_bpts.Add (breakpoint, action);
+
+ return true;
}
}

0 comments on commit 6531ee2

Please sign in to comment.
Something went wrong with that request. Please try again.