v.3.10 modules/udp_output: improvement for previous commit (if ts_count equal to zero, then sleeping)