forked from shaba/openuds
Fixed tunnel stop comms
This commit is contained in:
parent
edb4a32496
commit
efd0ca3f88
@ -236,9 +236,6 @@ class TicketStore(UUIDModel):
|
||||
# if not found any, will raise an execption
|
||||
user = User.objects.get(uuid=data['u'])
|
||||
userService = UserService.objects.get(uuid=data['s'], user=user)
|
||||
# Ensure userservice is usable
|
||||
if not userService.isUsable():
|
||||
raise Exception('Service is not usable') # Not usable, so we will not use it :)
|
||||
|
||||
host = data['h']
|
||||
|
||||
|
@ -165,11 +165,12 @@ async def tunnel_proc_async(
|
||||
|
||||
async with curio.TaskGroup() as tg:
|
||||
await tg.spawn(run_server, pipe, cfg, tg)
|
||||
await tg.join()
|
||||
# Reap all of the children tasks as they complete
|
||||
async for task in tg:
|
||||
logger.debug(f'REMOVING async task {task!r}')
|
||||
task.joined = True
|
||||
del task
|
||||
# async for task in tg:
|
||||
# logger.debug(f'REMOVING async task {task!r}')
|
||||
# task.joined = True
|
||||
# del task
|
||||
|
||||
|
||||
def tunnel_main():
|
||||
|
Loading…
Reference in New Issue
Block a user