Write queue after connect windows

should i put this somewhere else? uv__ at the end or something?