Minimize blocking in Filesystem.getCachedDiskUsage (#53)
This commit is contained in:
@@ -142,7 +142,7 @@ func (s *Server) onBeforeStart() error {
|
||||
s.SyncWithEnvironment()
|
||||
|
||||
s.PublishConsoleOutputFromDaemon("Checking server disk space usage, this could take a few seconds...")
|
||||
if !s.Filesystem.HasSpaceAvailable() {
|
||||
if !s.Filesystem.HasSpaceAvailable(false) {
|
||||
return errors.New("cannot start server, not enough disk space available")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user