<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Tor",
  "identifier" : "/documentation/Tor/TorError/notStarted",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Tor"
    ],
    "preciseIdentifier" : "s:3Tor0A5ErrorO10notStartedyA2CmF"
  },
  "title" : "TorError.notStarted"
}
-->

# TorError.notStarted

An operation requiring a running Tor instance was invoked against
an idle/stopped/failed session.

```
case notStarted
```

## Discussion

Typical sources: [`waitUntilBootstrapped(timeout:)`](/documentation/Tor/TorClient/waitUntilBootstrapped(timeout:)),
[`control()`](/documentation/Tor/TorClient/control()), [`makeURLSession(ephemeral:)`](/documentation/Tor/TorClient/makeURLSession(ephemeral:))
on Apple platforms. Fix by calling [`start()`](/documentation/Tor/TorClient/start()) first.