Make sure connection's port valid before adaptor init

This commit is contained in:
deadprogram 2014-03-01 00:24:26 -08:00
parent e6f6049e1e
commit 182e8c3ee8
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}