Prevent blocking when sending files to the i2

This commit is contained in:
April
2022-11-13 17:08:26 -07:00
parent 7727cdc23d
commit 2936a64cff
14 changed files with 40 additions and 27 deletions

View File

@ -9,7 +9,7 @@ import xml.dom.minidom
import shutil
import gzip
import logging,coloredlogs
import aiofiles, aiohttp
import aiohttp, aiofiles, asyncio
import sys
@ -324,6 +324,7 @@ async def getAlerts(location):
async def makeRecord():
loop = asyncio.get_running_loop()
global k
# The BERecord XML doesn't need to be written if there's no alerts.