Skip to content

Commit

Permalink
Merge pull request #52 from alexrp/master
Browse files Browse the repository at this point in the history
Make DebuggerSession.TargetExited more strongly typed.
  • Loading branch information
jstedfast committed Mar 24, 2015
2 parents 9ebf2f6 + fc573da commit 1671f19
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs
Expand Up @@ -97,7 +97,7 @@ public abstract class DebuggerSession: IDisposable
/// <summary>
/// Raised when the debugged process exits
/// </summary>
public event EventHandler TargetExited;
public event EventHandler<TargetEventArgs> TargetExited;

/// <summary>
/// Raised when an exception for which there is a catchpoint is thrown
Expand Down Expand Up @@ -1040,9 +1040,7 @@ internal protected void OnTargetEvent (TargetEventArgs args)
IsConnected = false;
HasExited = true;
}
EventHandler handler = TargetExited;
if (handler != null)
handler (this, args);
evnt = TargetExited;
break;
case TargetEventType.TargetHitBreakpoint:
lock (slock) {
Expand Down

0 comments on commit 1671f19

Please sign in to comment.