From f0e451a2d3d2899a7a0566391d7fafe5578f5692 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Tue, 4 Apr 2017 08:24:58 -0700 Subject: Fixing config file watch and config reload on license save (#5954) * Fixing config file watch and config reload on license save * Fixing config file watch and config reload on license save * Fixing build error * Fixing locking issue --- app/license.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/license.go') diff --git a/app/license.go b/app/license.go index 6b448b19d..c41c17fd8 100644 --- a/app/license.go +++ b/app/license.go @@ -100,6 +100,9 @@ func SaveLicense(licenseBytes []byte) (*model.License, *model.AppError) { return nil, model.NewLocAppError("addLicense", model.INVALID_LICENSE_ERROR, nil, "") } + ReloadConfig() + InvalidateAllCaches() + return license, nil } -- cgit v1.2.3-1-g7c22