Moved edsm killswitch check

It was causing exit hangs when edsm was disabled
This commit is contained in:
A_D authored and Athanasius committed 2021-04-01 14:45:47 +01:00
1 parent 98b27ee046
commit 10ca50bf5a
1 file changed
+3 -4
+3 -4
View File
@@ -509,12 +509,11 @@ def worker() -> None:
logger.debug('Empty queue message, setting closing = True')
closing = True # Try to send any unsent events before we close
if killswitch.is_disabled("plugins.edsm.worker"):
logger.warning('EDSM worker has been disabled via kill switch. Not uploading data.')
continue
retrying = 0
while retrying < 3:
if killswitch.is_disabled("plugins.edsm.worker"):
logger.warning('EDSM worker has been disabled via kill switch. Not uploading data.')
break
try:
if TYPE_CHECKING:
# Tell the type checker that these two are bound.