Write queue after connect windows

ill just leave an assert, ok?