daemon: fixed issue starting session and clearing session options, small cleanup to SessionOptions init
This commit is contained in:
parent
08637d35b3
commit
9d97699b1f
3 changed files with 6 additions and 9 deletions
|
@ -147,12 +147,7 @@ class Session:
|
|||
self.config_handlers: List[Callable[[ConfigData], None]] = []
|
||||
|
||||
# session options/metadata
|
||||
self.options: SessionConfig = SessionConfig()
|
||||
if not config:
|
||||
config = {}
|
||||
for key in config:
|
||||
value = config[key]
|
||||
self.options.set_config(key, value)
|
||||
self.options: SessionConfig = SessionConfig(config)
|
||||
self.metadata: Dict[str, str] = {}
|
||||
|
||||
# distributed support and logic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue