Make sure connection's port valid before adaptor init
This commit is contained in:
parent
e6f6049e1e
commit
182e8c3ee8
|
@ -45,8 +45,8 @@ namespace("Cylon", function() {
|
|||
this.robot = opts.robot;
|
||||
this.name = opts.name;
|
||||
this.connection_id = opts.id;
|
||||
this.adaptor = this.initAdaptor(opts);
|
||||
this.port = new Cylon.Port(opts.port);
|
||||
this.adaptor = this.initAdaptor(opts);
|
||||
proxyFunctionsToObject(this.adaptor.commands(), this.adaptor, this.self);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue