derekcollison/nats — pull request #76 by ogis-uno (2014-10-08 07:32:54+00:00)
Title: Fix send_command to trigger flush_pending if @pending exists

In original code, flush_pending is triggered(EM.next_tick) when @pending is nil,
and flush_pending does nothing if @pending is nil.
In my environment, published message does not deliver to server until periodic
ping triggered.