Write queue after connect windows

Ha, saghul suggested that I should do it after the connect callback.