Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 0bd09d6

Browse files
Removing unused task from RepositoryWatcher
1 parent e5c3ee8 commit 0bd09d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/GitHub.Api/Events/RepositoryWatcher.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class RepositoryWatcher : IRepositoryWatcher
3232
private readonly ManualResetEventSlim pauseEvent;
3333
private NativeInterface nativeInterface;
3434
private bool running;
35-
private Task task;
3635
private int lastCountOfProcessedEvents = 0;
3736
private bool processingEvents;
3837
private readonly ManualResetEventSlim signalProcessingEventsDone = new ManualResetEventSlim(false);
@@ -87,7 +86,7 @@ public void Start()
8786

8887
running = true;
8988
pauseEvent.Reset();
90-
task = Task.Factory.StartNew(WatcherLoop, cancellationToken, TaskCreationOptions.None, TaskScheduler.Default);
89+
Task.Factory.StartNew(WatcherLoop, cancellationToken, TaskCreationOptions.None, TaskScheduler.Default);
9190
}
9291

9392
public void Stop()

0 commit comments

Comments
 (0)