Fix failed imports

This commit is contained in:
Andrew 2022-11-19 16:13:44 -05:00
parent 4e17c1ea5e
commit 32cdde0616

View File

@ -427,6 +427,9 @@ class ServerInstance:
).format(self.name, ex)
},
)
if forge_install:
# Reset import status if failed while forge installing
self.stats_helper.finish_import()
return False
else:
@ -465,6 +468,9 @@ class ServerInstance:
).format(self.name, ex)
},
)
if forge_install:
# Reset import status if failed while forge installing
self.stats_helper.finish_import()
return False
out_buf = ServerOutBuf(self.helper, self.process, self.server_id)