stop resending when the peerSocket is closed start resending when it's open
stop resending when the peerSocket is closed
start resending when it's open