From a72348b34841524333d0c8cedb7d2622b3fe8c72 Mon Sep 17 00:00:00 2001 From: Alex <20666153+o8x@users.noreply.github.com> Date: Tue, 13 Apr 2021 09:15:59 +0800 Subject: [PATCH] fix bug: RWMutex not unlocked --- context/application.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context/application.go b/context/application.go index 9516743d8a..81d3541327 100644 --- a/context/application.go +++ b/context/application.go @@ -135,7 +135,7 @@ func GetApplications() []Application { // the return value is read-only but it can be casted to *iris.Application. apps := make([]Application, 0, len(registeredApps)) copy(apps, registeredApps) - mu.RLock() + mu.RUnlock() return apps }