Skip to content

Commit

Permalink
check if session is active
Browse files Browse the repository at this point in the history
  • Loading branch information
schroeder- authored and oroulet committed Sep 7, 2022
1 parent 80b63f1 commit b4106df
Show file tree
Hide file tree
Showing 2 changed files with 232 additions and 222 deletions.
3 changes: 3 additions & 0 deletions asyncua/server/internal_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ def __str__(self):
async def get_endpoints(self, params=None, sockname=None):
return await self.iserver.get_endpoints(params, sockname)

def is_activated(self) -> bool:
return self.state == SessionState.Activated

async def create_session(self, params, sockname=None):
self.logger.info('Create session request')
result = ua.CreateSessionResult()
Expand Down
Loading

0 comments on commit b4106df

Please sign in to comment.