fixing up sock.reconnect issue