diff options
author | Jason Imison <nosami@users.noreply.github.com> | 2022-07-21 12:11:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 12:11:39 +0300 |
commit | 274f3e732678406a5ad38a10ee9119b3a4dbdae9 (patch) | |
tree | 1df89c7af17688c7374387676ab23e7dc5b54aec | |
parent | 9c3ed66d0b0e795c89346aafd0b3095c6a1b06b8 (diff) | |
parent | d78df4d8be7f82a49e3f236e2ee32dcbb4a88c46 (diff) |
Merge pull request #372 from mono/dev/nosami/set-options-before-dispatch
Set options before Dispatch
-rw-r--r-- | Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs b/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs index 9b38e5a..0a8ee83 100644 --- a/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs +++ b/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs @@ -410,9 +410,10 @@ namespace Mono.Debugging.Client if (options == null) throw new ArgumentNullException (nameof (options)); + Interlocked.Exchange (ref this.options, options); + Dispatch (delegate { try { - this.options = options; OnRunning (); OnRun (startInfo); } catch (Exception ex) { @@ -444,9 +445,10 @@ namespace Mono.Debugging.Client if (options == null) throw new ArgumentNullException (nameof (options)); + Interlocked.Exchange (ref this.options, options); + Dispatch (delegate { try { - this.options = options; OnRunning (); OnAttachToProcess (proc); attached = true; |