Skip to content

Commit

Permalink
always send non-null terminus in attach
Browse files Browse the repository at this point in the history
  • Loading branch information
grs committed Oct 23, 2017
1 parent 2f4e588 commit 971a69e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,12 @@ function attach(factory, args, remote_terminus) {
l['set_' + t](opts[t]);
}
}
if (opts.source === undefined) {
opts.source = l.set_source({});
}
if (opts.target === undefined) {
opts.target = l.set_target({});
}
l.attach();
return l;
}
Expand Down

0 comments on commit 971a69e

Please sign in to comment.