Skip to content

Commit 8a72168

Browse files
committed
[dotnet] Begin reading of driver service output to fix Firefox disposing
1 parent db05817 commit 8a72168

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

dotnet/src/webdriver/DriverService.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,9 @@ public void Start()
268268

269269
this.driverServiceProcess.Start();
270270

271-
if (this.EnableProcessRedirection)
272-
{
273-
// Important: Start the process and immediately begin reading the output and error streams to avoid IO deadlocks.
274-
this.driverServiceProcess.BeginOutputReadLine();
275-
this.driverServiceProcess.BeginErrorReadLine();
276-
}
271+
// Important: Start the process and immediately begin reading the output and error streams to avoid IO deadlocks.
272+
this.driverServiceProcess.BeginOutputReadLine();
273+
this.driverServiceProcess.BeginErrorReadLine();
277274

278275
bool serviceAvailable = this.WaitForServiceInitialization();
279276

0 commit comments

Comments
 (0)