How to (automatically) reconnect to dbus after it loses connection? #70
Unanswered
denilsonsa
asked this question in
Q&A
Replies: 1 comment
-
Hello @denilsonsa I don't believe that the sd-bus library supports reconnecting to D-Bus: https://man.archlinux.org/man/sd_bus_start.3.en#Errors The only solution is to open new bus and recreate all proxy objects. Maybe there could be some kind of helper function to help with that. However, I think there should be some other exception than SdBusUnmappedMessageError. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've written a little tool that is supposed to keep running on the background "forever". However, randomly after the system goes to sleep and wakes up, it seems the bus gets disconnected:
How can I check for a dbus connection? (Probably using the
dbus_ping
method.)How can I make my
DbusInterfaceCommon
-derived class auto-reconnect when needed?Beta Was this translation helpful? Give feedback.
All reactions