Permalink
Browse files

Delay before connection attempt

  • Loading branch information...
1 parent 78c7e96 commit 6807915a0f55092a549f45191b4741b93fe35537 @mlt committed Aug 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 linux/schwinn810-tray.py
View
@@ -4,6 +4,7 @@
pygtk.require('2.0')
import gtk
import dbus
+from time import sleep
from subprocess import Popen
class DeviceAddedListener:
@@ -43,6 +44,7 @@ def _added(self, udi):
if device.QueryCapability("serial") and self.check_parent(device):
self.udi = udi
+ sleep(2)
return self.fire()
def _removed(self, udi):

0 comments on commit 6807915

Please sign in to comment.