File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -177,18 +177,12 @@ func loop() {
177
177
os .Exit (0 )
178
178
}
179
179
180
- // Instantiate Index
181
- Index = index .Init (* indexURL , config .GetDataDir ())
182
-
183
180
logger := func (msg string ) {
184
181
mapD := map [string ]string {"DownloadStatus" : "Pending" , "Msg" : msg }
185
182
mapB , _ := json .Marshal (mapD )
186
183
h .broadcastSys <- mapB
187
184
}
188
185
189
- // Instantiate Tools
190
- Tools = * tools .New (config .GetDataDir (), Index , logger )
191
-
192
186
// Let's handle the config
193
187
configDir := config .GetDefaultConfigDir ()
194
188
var configPath * paths.Path
@@ -251,6 +245,10 @@ func loop() {
251
245
}
252
246
}
253
247
248
+ // Instantiate Index and Tools
249
+ Index = index .Init (* indexURL , config .GetDataDir ())
250
+ Tools = * tools .New (config .GetDataDir (), Index , logger )
251
+
254
252
// see if we are supposed to wait 5 seconds
255
253
if * isLaunchSelf {
256
254
launchSelfLater ()
You can’t perform that action at this time.
0 commit comments