Added a wait so encoding tasks doesn't block IRC tasks.