Skip to content

Commit 31bed66

Browse files
committed
Stop threads that are no longer in use.
1 parent e0beb7a commit 31bed66

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/AsyncFiberWorks/Procedures/SequentialHandlerWaiter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public void Dispose()
166166
_notifierExecutionRequested.Dispose();
167167
_notifierExecutionFinished.Dispose();
168168
}
169+
_thread.Dispose();
169170
}
170171
}
171172
}

src/AsyncFiberWorks/Procedures/SequentialTaskWaiter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ public void Dispose()
156156
_notifierExecutionRequested.Dispose();
157157
_notifierExecutionFinished.Dispose();
158158
}
159+
_thread.Dispose();
159160
}
160161
}
161162
}

0 commit comments

Comments
 (0)