Don't try to send space available when loading from a configuration

Server is not always installed when this function is called, this will cause errors in those cases.
This commit is contained in:
Dane Everitt 2020-06-22 20:52:23 -07:00
parent f318962371
commit a3d83d23bd
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -247,10 +247,6 @@ func FromConfiguration(data *api.ServerConfigurationResponse) (*Server, error) {
}
s.Resources = ResourceUsage{}
// Force the disk usage to become cached to return in a resources response
// or when connecting to the websocket of an offline server.
go s.Filesystem.HasSpaceAvailable()
// Forces the configuration to be synced with the panel.
if err := s.SyncWithConfiguration(data); err != nil {
return nil, err