Previously, the listener socket was bound in the thread. This was refactored so that socket is bound prior to starting the thread. This block basically is looping until the socket is bound in the thread. This is no longer necessary as we know that the socket has been bound already.