Malamute/malamute-core — pull request #38 by hintjens (2014-12-16 09:13:04+00:00)
Title: Problem: was not re-registering clients correctly

Stream re-registration code was incorrect, so second client using
the same pattern would not get any messages.

Solution: fix this.

Problem #2: at shutdown, did not properly flush in-flight messages.

Solution: do shutdown handshaking unless process was interrupted.