Skip to content

Commit f9da6bc

Browse files
committed
add comments
1 parent a04167a commit f9da6bc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

FlashpointSecurePlayer/SingleInstance.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ public override void Activate(string templateName) {
108108

109109
do {
110110
if (processesByNameStrict != null) {
111+
// for future versions: would be nice if ShowClosableMessageBox created this token source
112+
// and passed it as an argument to the tasks that we give to it
113+
// (since you'll probably always want it)
114+
// but unsure how to make the WhenAll in ShowClosableMessageBox pass the arguments
115+
// to the task, or how to make the task itself recieve them
116+
// maybe ThreadPool.QueueUserWorkItem does this?
111117
using (CancellationTokenSource cancellationTokenSource = new CancellationTokenSource()) {
112118
CancellationToken token = cancellationTokenSource.Token;
113119

@@ -136,6 +142,8 @@ public override void Activate(string templateName) {
136142
}
137143
}
138144
}
145+
146+
_processesByNameStrict = null;
139147
}),
140148

141149
String.Format(

0 commit comments

Comments
 (0)