setImmediate on resume