diff --git a/lib/connection.js b/lib/connection.js index 5fb0cf6..32f3236 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -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); }