grpc: fixed creating session directory if need be when starting session, before setting config state, avoids path not existing error
This commit is contained in:
parent
836e929fbc
commit
d824fbd1c6
1 changed files with 1 additions and 1 deletions
|
@ -221,9 +221,9 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
|||
|
||||
# clear previous state and setup for creation
|
||||
session.clear()
|
||||
session.set_state(EventTypes.CONFIGURATION_STATE)
|
||||
if not os.path.exists(session.session_dir):
|
||||
os.mkdir(session.session_dir)
|
||||
session.set_state(EventTypes.CONFIGURATION_STATE)
|
||||
|
||||
# location
|
||||
if request.HasField("location"):
|
||||
|
|
Loading…
Reference in a new issue