Skip to content

Commit 0dbcd2a

Browse files
Stop jobs on exit and clear job list
1 parent a241cf3 commit 0dbcd2a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

FileSyncApp/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ static void RunProgram()
129129
{
130130
Thread.Sleep(500);
131131
}
132+
foreach(var job in Jobs)
133+
{
134+
job.Value.StopJob();
135+
}
136+
Jobs.Clear();
132137
}
133138

134139

0 commit comments

Comments
 (0)