Maybe we should just separate the cleanup from the end method and introduce it as a new cleanup method that doesn't emit anything so we can reuse it in various parts.

> On Mar 22, 2014, at 12:44, Luigi Pinca <notifications@github.com> wrote:
> 
> In primus.js:
> 
> >      //
> > -    if (~primus.options.strategy.indexOf('disconnect')) primus.reconnect();
> > +    if (~primus.options.strategy.indexOf('disconnect')) {
> > +      primus.reconnect();
> > +    } else {
> > +      primus.emit('outgoing::end');
> > +      primus.emit('end');
> but i think i forgot the this.writable = false; here.
> 
> —
> Reply to this email directly or view it on GitHub.