Make connection not try to send data in loop