From 141a5c3dee495d16b501f735d362ef6fc820d5e5 Mon Sep 17 00:00:00 2001 From: Daniel Pavel Date: Fri, 12 Jul 2013 22:07:58 +0200 Subject: [PATCH] don't ping devices known to be offline --- lib/logitech/unifying_receiver/receiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logitech/unifying_receiver/receiver.py b/lib/logitech/unifying_receiver/receiver.py index d514caec..d0561be4 100644 --- a/lib/logitech/unifying_receiver/receiver.py +++ b/lib/logitech/unifying_receiver/receiver.py @@ -119,7 +119,7 @@ class PairedDevice(object): @property def protocol(self): - if self._protocol is None: + if self._protocol is None and self.online is not False: self._protocol = _base.ping(self.receiver.handle, self.number) # if the ping failed, the peripheral is (almost) certainly offline self.online = self._protocol is not None