cosmetic
Fix #35 - flush outgoing buffer only if possible