refactor: dont raise GracefulExit on app_shutdown
This commit is contained in:
parent
4ad218e97d
commit
4773e73d88
1 changed files with 0 additions and 2 deletions
|
|
@ -4,7 +4,6 @@ import time
|
|||
|
||||
from aiohttp import web
|
||||
from aiohttp.web import Request, Response
|
||||
from aiohttp.web_runner import GracefulExit
|
||||
|
||||
from app.library.config import Config
|
||||
from app.library.DownloadQueue import DownloadQueue
|
||||
|
|
@ -118,7 +117,6 @@ async def shutdown_system(request: Request, config: Config, encoder: Encoder, no
|
|||
await asyncio.sleep(0.5)
|
||||
await app.shutdown()
|
||||
await app.cleanup()
|
||||
raise GracefulExit
|
||||
|
||||
# Schedule shutdown after response
|
||||
asyncio.create_task(do_shutdown())
|
||||
|
|
|
|||
Loading…
Reference in a new issue