From 1bf92c9052ffda49a323a87b107b958dc11bf82a Mon Sep 17 00:00:00 2001 From: gtcdevop Date: Fri, 7 Jan 2022 17:01:43 -0300 Subject: [PATCH] Fix issue 412 ``` ... AttributeError: Session object has no attribute '_is_alive' ``` Change how we check device is alive --- insomniac/device_facade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/insomniac/device_facade.py b/insomniac/device_facade.py index 123d4dd..03ac129 100644 --- a/insomniac/device_facade.py +++ b/insomniac/device_facade.py @@ -209,7 +209,7 @@ def is_alive(self): if self.deviceV1 is not None: return self.deviceV1.server.alive else: - return self.deviceV2._is_alive() + return self.deviceV2.server.alive def wake_up(self): """ Make sure agent is alive or bring it back up before starting. """