-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I've been having an issue driving both browsermob-proxy-2.1.0-beta-3 and browsermob-proxy-2.1.0-beta-4 with AutomatedTester namely that .Stop() is not terminating the java side of things nor is it terminating the CMD side of things either.
As a temporary measure, given my naivete, I've modified Stop as follows
public void Stop()
{
if (_serverProcess != null && !_serverProcess.HasExited)
{
_serverProcess.Kill();
//_serverProcess.CloseMainWindow();
//_serverProcess.Dispose();
_serverProcess = null;
}
}
I'm yet to see if this improves things or not. I fancy it leaves a lot of garbage lying around. Is there a better way of making sure that Stop really does Stop? Should I implement Abort and put the Kill in there?
I've also made _serverProcess public so that I can see what the process itself is up to.
Metadata
Metadata
Assignees
Labels
No labels