Skip to content

Commit a30c91c

Browse files
committed
Bugfix: Must await async tasks
1 parent 66c8580 commit a30c91c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jupyter_matlab_proxy/app_state.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ async def init_licensing(self):
131131
) - timedelta(hours=1)
132132

133133
if expiry_window > datetime.now(timezone.utc):
134-
successful_update = self.__update_and_persist_licensing()
134+
successful_update = (
135+
await self.__update_and_persist_licensing()
136+
)
135137
if successful_update:
136138
logger.info("Successful re-use of cached information.")
137139
else:
@@ -204,7 +206,7 @@ async def set_licensing_mhlm(
204206
"entitlement_id": entitlement_id,
205207
}
206208

207-
successful_update = self.__update_and_persist_licensing()
209+
successful_update = await self.__update_and_persist_licensing()
208210
if successful_update:
209211
logger.info("Login successful, persisting login information.")
210212

0 commit comments

Comments
 (0)