1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

Update DONATIONS.md summary & iris updater runs async unless CheckForUpdatesSync is true

This commit is contained in:
Gerasimos Maropoulos
2016-09-18 00:50:10 +03:00
parent e9d40577ea
commit 27f2ba7be9
5 changed files with 35 additions and 7 deletions

View File

@@ -78,7 +78,7 @@ import (
const (
// Version is the current version of the Iris web framework
Version = "4.2.5"
Version = "4.2.6"
banner = ` _____ _
|_ _| (_)
@@ -288,8 +288,10 @@ func (s *Framework) initialize() {
// updates, to cover the default station's irs.Config.checkForUpdates
// note: we could use the IsDevelopment configuration field to do that BUT
// the developer may want to check for updates without, for example, re-build template files (comes from IsDevelopment) on each request
if s.Config.CheckForUpdates {
if s.Config.CheckForUpdatesSync {
s.CheckForUpdates(false)
} else if s.Config.CheckForUpdates {
go func() { s.CheckForUpdates(false) }()
}
}