grpc: updated create session to return a session object with default values, avoids scripts needing to create and then join, can just create and leverage the returned object
This commit is contained in:
parent
598cb0f10d
commit
53ae6ac784
12 changed files with 136 additions and 87 deletions
|
@ -357,9 +357,9 @@ class CoreClient:
|
|||
Create a new session
|
||||
"""
|
||||
try:
|
||||
session_id = self.client.create_session()
|
||||
logger.info("created session: %s", session_id)
|
||||
self.join_session(session_id)
|
||||
session = self.client.create_session()
|
||||
logger.info("created session: %s", session.id)
|
||||
self.join_session(session.id)
|
||||
location_config = self.app.guiconfig.location
|
||||
self.session.location = SessionLocation(
|
||||
x=location_config.x,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue