Skip to content

Commit 4de8964

Browse files
committed
Unsubscribe
1 parent 222f4ca commit 4de8964

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dotnet/src/webdriver/DriverService.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,12 @@ protected virtual void Dispose(bool disposing)
290290
this.Stop();
291291
}
292292

293+
if (this.driverServiceProcess is not null)
294+
{
295+
this.driverServiceProcess.OutputDataReceived -= this.OnDriverProcessDataReceived;
296+
this.driverServiceProcess.ErrorDataReceived -= this.OnDriverProcessDataReceived;
297+
}
298+
293299
this.isDisposed = true;
294300
}
295301
}

0 commit comments

Comments
 (0)