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:
parent
f318962371
commit
a3d83d23bd
|
@ -247,10 +247,6 @@ func FromConfiguration(data *api.ServerConfigurationResponse) (*Server, error) {
|
||||||
}
|
}
|
||||||
s.Resources = ResourceUsage{}
|
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.
|
// Forces the configuration to be synced with the panel.
|
||||||
if err := s.SyncWithConfiguration(data); err != nil {
|
if err := s.SyncWithConfiguration(data); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user