diff --git a/agent/taskresource/fsxwindowsfileserver/fsxwindowsfileserver_windows.go b/agent/taskresource/fsxwindowsfileserver/fsxwindowsfileserver_windows.go index 271b25d90d7..51f595f5bf2 100644 --- a/agent/taskresource/fsxwindowsfileserver/fsxwindowsfileserver_windows.go +++ b/agent/taskresource/fsxwindowsfileserver/fsxwindowsfileserver_windows.go @@ -719,7 +719,7 @@ func (fv *FSxWindowsFileServerResource) updateAppliedStatusUnsafe(knownStatus re // GetAppliedStatus safely returns the currently applied status of the resource func (fv *FSxWindowsFileServerResource) GetAppliedStatus() resourcestatus.ResourceStatus { fv.lock.RLock() - defer fv.lock.RLock() + defer fv.lock.RUnlock() return fv.appliedStatusUnsafe }