Skip to content

Commit

Permalink
Iterate through set of apps in extension_manager.any_activity method (
Browse files Browse the repository at this point in the history
#1157)

Fixes #1156
  • Loading branch information
mahendrapaipuri authored Dec 29, 2022
1 parent 2fcd759 commit 73d5776
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jupyter_server/extension/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ async def stop_all_extensions(self):

def any_activity(self):
"""Check for any activity currently happening across all extension applications."""
for _, app in sorted(dict(self.extension_apps).items()):
if app.current_activity():
return True
for _, apps in sorted(dict(self.extension_apps).items()):
for app in apps:
if app.current_activity():
return True

0 comments on commit 73d5776

Please sign in to comment.