Skip to content

Commit 8929a29

Browse files
committed
do not init clock at class level
1 parent 2624a3e commit 8929a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/viam/sessions_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ class SessionsClient:
4848

4949
_current_id: str = ""
5050
_disabled: bool = False
51-
_lock = asyncio.Lock(**loop_kwargs())
5251
_supported: Optional[bool] = None
5352
_heartbeat_interval: Optional[timedelta] = None
5453

5554
def __init__(self, channel: Channel, *, disabled: bool = False):
5655
self.channel = channel
5756
self.client = RobotServiceStub(channel)
5857
self._disabled = disabled
58+
self._lock = asyncio.Lock(**loop_kwargs())
5959

6060
listen(self.channel, SendRequest, self._send_request)
6161
listen(self.channel, RecvTrailingMetadata, self._recv_trailers)

0 commit comments

Comments
 (0)