Moved sending of client_port msg out of for loop