Write queue after connect windows

I don't think this needs to be inline, the compiler should know.