---
title: CHHapticEngine.StoppedReason.idleTimeout
framework: corehaptics
role: symbol
role_heading: Case
path: corehaptics/chhapticengine/stoppedreason/idletimeout
---

# CHHapticEngine.StoppedReason.idleTimeout

The engine shut down because you’ve enabled automatic shutdown, and the engine reached its idle timeout.

## Declaration

```swift
case idleTimeout
```

## Discussion

Discussion If there’s a time-critical pattern to play, restart the engine. Otherwise, do nothing and the engine will automatically restart when the next pattern plays. note: Delegating engine restart to the system can add a slight delay to the start of the pattern.

## See Also

### Stopped Reasons

- [CHHapticEngine.StoppedReason.audioSessionInterrupt](corehaptics/chhapticengine/stoppedreason/audiosessioninterrupt.md)
- [CHHapticEngine.StoppedReason.applicationSuspended](corehaptics/chhapticengine/stoppedreason/applicationsuspended.md)
- [CHHapticEngine.StoppedReason.engineDestroyed](corehaptics/chhapticengine/stoppedreason/enginedestroyed.md)
- [CHHapticEngine.StoppedReason.gameControllerDisconnect](corehaptics/chhapticengine/stoppedreason/gamecontrollerdisconnect.md)
- [CHHapticEngine.StoppedReason.notifyWhenFinished](corehaptics/chhapticengine/stoppedreason/notifywhenfinished.md)
- [CHHapticEngine.StoppedReason.systemError](corehaptics/chhapticengine/stoppedreason/systemerror.md)
