If the server is stopped, this routine will block here since no one is going to recv on the channel. Then stop function will be blocked.