Merge pull request #217 from pikers/hot_fix_cache_event_is_none
Only set event if entry still existspause_feeds_on_sym_switch
commit
07e35d3ff5
|
@ -174,7 +174,9 @@ async def maybe_open_ctx(
|
||||||
log.warning(f'De-allocating resource for {key}')
|
log.warning(f'De-allocating resource for {key}')
|
||||||
|
|
||||||
# terminate mngr nursery
|
# terminate mngr nursery
|
||||||
_, no_more_users = cache.resources[ctx_key]
|
entry = cache.resources.get(ctx_key)
|
||||||
|
if entry:
|
||||||
|
_, no_more_users = entry
|
||||||
no_more_users.set()
|
no_more_users.set()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue