Fix: use dummy aria2 client when caller initialize failed in master node

pull/1040/head
HFO4 4 years ago
parent 34003a36d0
commit cf2960a092

@ -146,7 +146,7 @@ func (r *rpcService) Init() error {
caller, err := rpc.New(context.Background(), server.String(), r.parent.Model.Aria2OptionsSerialized.Token, time.Duration(timeout)*time.Second, common.EventNotifier) caller, err := rpc.New(context.Background(), server.String(), r.parent.Model.Aria2OptionsSerialized.Token, time.Duration(timeout)*time.Second, common.EventNotifier)
r.Caller = caller r.Caller = caller
r.Initialized = true r.Initialized = err == nil
return err return err
} }

Loading…
Cancel
Save