Doodle3D / connman-api

Connman (Opensource connection manager) client
MIT License
9 stars 10 forks source link

Add a way to reinitialize the API #8

Open ryansturmer opened 9 years ago

ryansturmer commented 9 years ago

For various reasons, I have to shut down the connman service while my application is running, and it would be valuable for me to be able to truly destroy my connman-api instance such that I could create another one when the service restarts. Attempting to do so now results in a dbus crash.

peteruithoven commented 9 years ago

I would start by checking if there is a reverce for the following two parts: https://github.com/Doodle3D/connman-api/blob/master/lib/connman.js#L39 https://github.com/Doodle3D/connman-api/blob/master/lib/agent.js#L30 Execute that and see if it still chrashes.

The examples of the DBus package might be helpful: https://github.com/Shouqun/node-dbus/tree/master/examples

ryansturmer commented 9 years ago

I dug around a bit, and haven't found a way to "unregister" - still learning the ins and outs of dbus...