---
title: stopRunning()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avcapturesession/stoprunning()
---

# stopRunning()

Stops the flow of data through the capture pipeline.

## Declaration

```swift
func stopRunning()
```

## Discussion

Discussion Call this method to stop the flow of data from the inputs to the outputs connected to the capture session. This method is synchronous and blocks until the session stops running completely.

## See Also

### Managing the session life cycle

- [startRunning()](avfoundation/avcapturesession/startrunning().md)
