Write queue after connect windows

why dont you want the callback based method?