PowerShell / Polaris

A cross-platform, minimalist web framework for PowerShell
https://powershell.github.io/Polaris/
MIT License
512 stars 115 forks source link

Fix for #198 start-polaris throwing error #200

Closed Tiberriver256 closed 5 years ago

Tiberriver256 commented 5 years ago

I was unable to re-create the issue by running Start-Polaris and Stop-Polaris consecutively but if you happened to run Start-Polaris twice you were out of luck until restarting PowerShell as we were just creating a new instance of HttpListener right over the top of an already listening HttpListener and would throw an error.

@harikanth64 - If possible I'd love it if you could pull this code down and see if it resolves your issue before I merge it in.

Tiberriver256 commented 5 years ago

@TylerLeonhardt - Got confirmation from @Harikanth64 this resolves this issue. When you get a chance could you give me a code review?