def ping_check(self):
        if time.time() - self.last_ping > 3:
            print "Server timed out, disconnecting..."
            self.close()
            self.exit_now = True
            return
        gevent.spawn_later(1, self.ping_check)
dataset/ETHPy150Open metafetish/buttplug/buttplug/template/base.py/BPBase.ping_check/original