mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix failed imports
This commit is contained in:
parent
4e17c1ea5e
commit
32cdde0616
@ -427,6 +427,9 @@ class ServerInstance:
|
|||||||
).format(self.name, ex)
|
).format(self.name, ex)
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
if forge_install:
|
||||||
|
# Reset import status if failed while forge installing
|
||||||
|
self.stats_helper.finish_import()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
else:
|
else:
|
||||||
@ -465,6 +468,9 @@ class ServerInstance:
|
|||||||
).format(self.name, ex)
|
).format(self.name, ex)
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
if forge_install:
|
||||||
|
# Reset import status if failed while forge installing
|
||||||
|
self.stats_helper.finish_import()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
out_buf = ServerOutBuf(self.helper, self.process, self.server_id)
|
out_buf = ServerOutBuf(self.helper, self.process, self.server_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user