Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Elastic Search shutdown #3

Closed
tormodu opened this issue Dec 9, 2014 · 2 comments
Closed

Elastic Search shutdown #3

tormodu opened this issue Dec 9, 2014 · 2 comments
Assignees

Comments

@tormodu
Copy link
Contributor

tormodu commented Dec 9, 2014

I have been trying to debug this part of the code trying to shutdown Elastic Search:

public virtual void Stop()
{
   if (_process != null)
        {
            return;
        }

        if (_process.HasExited)
        {
            return;
        }

        _process.CloseMainWindow();
}       

Too me it seems like _process is never null which means that _process.CloseMainWindow(); is never called.

Should the correct implementation be this?

    public virtual void Stop()
    {
        if (_process == null)
        {
            return;
        }

        if (_process.HasExited)
        {
            return;
        }

        _process.CloseMainWindow();

    }
@garvincasimir
Copy link
Owner

You are right! If you send me a pull I will merge. If not I can make the change later today.

Thanks for contributing. I am thinking of versioning this project and making it one or multiple nuget packages. Want to join up?

@garvincasimir garvincasimir self-assigned this Dec 10, 2014
@tormodu
Copy link
Contributor Author

tormodu commented Dec 10, 2014

Excellent. nuget packaging sounds like a good idea. I'm in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants