[PATCH BlueZ 1/1] obexd: Fix failure to register bt transport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On initial logind update, the internal 'active' state is FALSE. Where
querying the current state (`sd_uid_get_state`) returns 'active' we do
NOT want to short-circuit the update to the internal state value and
ultimate transport initialisation.
---
 obexd/src/logind.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/obexd/src/logind.c b/obexd/src/logind.c
index b4279b209..e681dd39f 100644
--- a/obexd/src/logind.c
+++ b/obexd/src/logind.c
@@ -68,7 +68,7 @@ static int update(void)
 		return res;
 
 	if (state_is_active) {
-		if (!active)
+		if (active)
 			return 0;
 	} else {
 		res = sd_uid_get_seats(uid, 1, NULL);
-- 
2.50.0





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux