alexdresko / HSPI

HomeSeer plugin helper framework
MIT License
11 stars 11 forks source link

Fixes #65 #74

Closed alexdresko closed 7 years ago

alexdresko commented 7 years ago

Summary

Calls Environment.Exit(0) at the end of the Connector logic. I'm guessing there's some thread logic behind that scenes that's preventing the thread from shutting down on its own.

Description

This is the first bug fix PR in the HSPI nuget package that has a positive effect on everyone who uses the library!!!!! And that, my friends, is why we're doing this thing!

Related Issue

65

Motivation and Context

Makes sense according to the conversation in #65. "Disconnect" is a strange concept to me.. Might should be called "Shut down"? I dunno. There's no way to "Reconnect" so it's just strange.

How Has This Been Tested

I loaded the HSPI solution and ran the HSPIPluginA.Dev project to verify that I could connect to HS. I then disconnected the plugin as described in #65. The plugin console window almost immediately shuts down now. Before the code change, it didn't shut down.

Types of changes

Checklist