mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-29 17:38:12 -07:00
moved the waiting operation under the timeout check
This commit is contained in:
parent
ac968cef99
commit
6ad374006f
2 changed files with 8 additions and 3 deletions
|
@ -81,6 +81,7 @@ private class Main @Inject constructor(
|
|||
|
||||
var result = 0
|
||||
val latestVersionFuture = github.latestKobaltVersion
|
||||
|
||||
val seconds = benchmarkSeconds {
|
||||
try {
|
||||
result = runWithArgs(jc, args, argv)
|
||||
|
@ -95,8 +96,7 @@ private class Main @Inject constructor(
|
|||
if (! args.update) {
|
||||
log(1, if (result != 0) "BUILD FAILED: $result" else "BUILD SUCCESSFUL ($seconds seconds)")
|
||||
|
||||
// Check for new version
|
||||
updateKobalt.checkForNewVersion(latestVersionFuture.get())
|
||||
updateKobalt.checkForNewVersion(latestVersionFuture)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue