Write queue after connect windows

this line is not needed