Replies: 2 comments
-
NM...i got this to work...it seems a simple System.exit(0); automagically closes all the diozero devices. :-) |
Beta Was this translation helpful? Give feedback.
-
I've done my best to auto-shutdown things but you're right - System.exit(0) is always a good idea if the app doesn't exit on its own after closing all devices. I strongly recommend using try with resources whenever you can - I turn on compiler warnings (in Eclipse) so that I can see if there is a resource that isn't being closed. Closing the default device factory should cleanup most of the diozero stuff, however, there can be other non-daemon threads (such as gRPC or Netty) that block JVM shutdown. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the gRPC explained here and all works fine except that I'm trying to figure out how when I restart my app on my Windows PC using Eclipse, I can do so such that I don't have to also first restart the GrpcServer on my RPi also. If I don't restart the server, I receive errors such as
Any suggestions or direction would be greatly appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions