Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Homeseer disconnects the plugin the plugin hangs #65

Open
oesolberg opened this issue May 24, 2017 · 11 comments
Open

When Homeseer disconnects the plugin the plugin hangs #65

oesolberg opened this issue May 24, 2017 · 11 comments
Assignees
Labels
Milestone

Comments

@oesolberg
Copy link
Contributor

I have only done this with Homeseer on another machine.
Start a plugin.
Go into Homeseer and disconnect the plugin.
The plugin will hang with the message "Connection to homeseer lost, exiting"

I guess this is because the Connector does not have any check if the connection is lost and does not shut the whole program down.

@alexdresko
Copy link
Owner

Thanks for reporting, @oesolberg. I'll try take a look at this soon.

@alexdresko
Copy link
Owner

@oesolberg Can you explain how to reproduce this problem? Here's what I'm seeing:

  1. Start HS
  2. Start the plug in Visual Studio
  3. Shutdown HS
  4. The plugin shuts down almost immediately

Do you mean that this is happening when the plugin is installed as opposed to running it from VS? If you can help me reproduce the problem, I'll definitely fix it.

@oesolberg
Copy link
Contributor Author

Start HS
Start the plug in Visual Studio
Go into HS, manage plugins and disconnect the plugin(HS keeps running)

@dpmurphy
Copy link
Contributor

dpmurphy commented Jun 4, 2017 via email

@oesolberg
Copy link
Contributor Author

Not that the plugin does not stop. Homeseer is expected to go on, but the disconnected plugin shoul quit/exit or try to reconnect. As it is today it reports that it lost connection and then stays on. I would expect the plugin to exit.

@dpmurphy
Copy link
Contributor

dpmurphy commented Jun 4, 2017 via email

@oesolberg
Copy link
Contributor Author

No worries. I should have been more specific.

@alexdresko alexdresko mentioned this issue Jun 10, 2017
10 tasks
@alexdresko
Copy link
Owner

@oesolberg I finally have a fix for this in the dev branch. If you're in a hurry for the fix, I can publish immediately. Otherwise, it'll get included in the next round of updates... probably within the next week or two.

@alexdresko alexdresko self-assigned this Jun 10, 2017
@alexdresko alexdresko added the bug label Jun 10, 2017
@alexdresko alexdresko added this to the Definitive milestone Jun 10, 2017
@oesolberg
Copy link
Contributor Author

Great work. Thanks

@zimmer62
Copy link

zimmer62 commented Nov 14, 2017

I found that doing an Environment.Exit(0) was not ideal for me. I ended up needing to do both
CallbackClient.Dispose();
HsClient.Dispose();

Now this posed a little problem for me as the CallbackClient and the HsClient are not publicly accessible from where I was running the connector.

@alexdresko alexdresko reopened this Nov 20, 2017
@alexdresko
Copy link
Owner

Reopening to implement the suggestion from @zimmer62

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

No branches or pull requests

4 participants