Browse Source

Adding asynchronous methods

LinkLeong 2 năm trước cách đây
mục cha
commit
8c7c8dc1ec
2 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 0 1
      main.go
  2. 1 0
      route/init.go

+ 0 - 1
main.go

@@ -84,7 +84,6 @@ func init() {
 	///
 	// service.MountLists = make(map[string]*mountlib.MountPoint)
 	// configfile.Install()
-	service.MyService.Storage().CheckAndMountAll()
 }
 
 // @title casaOS API

+ 1 - 0
route/init.go

@@ -92,5 +92,6 @@ func InitNetworkMount() {
 		}
 		connection.Directories = strings.Join(directories, ",")
 		service.MyService.Connections().UpdateConnection(&connection)
+		service.MyService.Storage().CheckAndMountAll()
 	}
 }