1) Fixed a bug in the sleep manager that caused the resume to be dispatched infinitely