Commit 38dd04af authored by Sukru Senli's avatar Sukru Senli

rpc init depends on session and uci objects

parent 754f87ec
......@@ -56,8 +56,8 @@
async.series([
function(next){
$rpc.$init().done(function(){
if(!$rpc.$has("uci")){
deferred.reject("missing juci.system");
if(!$rpc.$has("session") || !$rpc.$has("uci")){
deferred.reject("missing session and/or uci");
return;
}
next();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment