Write queue after connect windows

It is not required for this patch, but I'll add it because this way it is more consistent, and some other code might rely on connect_req having the right value.