~singpolyma/jmp-pay

ref: e29daf4c9cde4aa8cb4cf3c6fab88704b6851a8b jmp-pay/lib/blather_notify.rb -rw-r--r-- 633 bytes
Do not wait to exit until after we are ready
Do not hang forever if shutdown fails
Wait until fully disconnected before EM.stop
Fix intermittent notification non-delivery

We need to wait until all EventMachine items in flight are complete before we
allow the process to terminate or some of them might not happen.  So when the
process wants to exit, wait until the EM thread is done.  Use next_tick to make
sure our stop command only happens when the EM queue is next clear.
Higher XMPP connect timeout

Because sometimes the box is under high load.
Notify customer when renewal fails due to low balance

This is done by sending from a configured JID to <tel>@cheogram.com in order to
have them receive a message from support.