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
|
# clear previous state and setup for creation
|
||||||
session.clear()
|
session.clear()
|
||||||
session.set_state(EventTypes.CONFIGURATION_STATE)
|
|
||||||
if not os.path.exists(session.session_dir):
|
if not os.path.exists(session.session_dir):
|
||||||
os.mkdir(session.session_dir)
|
os.mkdir(session.session_dir)
|
||||||
|
session.set_state(EventTypes.CONFIGURATION_STATE)
|
||||||
|
|
||||||
# location
|
# location
|
||||||
if request.HasField("location"):
|
if request.HasField("location"):
|
||||||
|
|
Loading…
Add table
Reference in a new issue