Write queue after connect windows

I mean not connect_req, setting it. If we succeed connecting immediately then we do not need to queue anything.