Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-03-05 03:11:25 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-03-05 03:11:25 +0300
commit1dc7bc0ceefc400b8c4637e132e234a40d3b783d (patch)
tree84757a1d29c6645372d69175e0214f33ce1479ab /README.md
parentfa6aa6729d6c8f35ff85fbebe5a345f6218221dd (diff)
doc: `client.destroy` takes a callback
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 9268207..3fc7453 100644
--- a/README.md
+++ b/README.md
@@ -320,9 +320,9 @@ ready). See the torrent section for more info on what methods a `torrent` has.
Remove a torrent from the client. Destroy all connections to peers and delete all saved
file data. If `callback` is specified, it will be called when file data is removed.
-#### `client.destroy()`
+#### `client.destroy([function callback (err) {}])`
-Destroy the client, including all torrents and connections to peers.
+Destroy the client, including all torrents and connections to peers. If `callback` is specified, it will be called when the client has gracefully closed.
#### `client.torrents[...]`