Skip to content

Commit

Permalink
use hyperswarm
Browse files Browse the repository at this point in the history
  • Loading branch information
okdistribute committed Mar 24, 2020
1 parent 11f9e70 commit 15eb81f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dat-json": "^1.0.3",
"dat-link-resolve": "^2.3.0",
"dat-log": "^1.2.0",
"dat-node": "^3.5.15",
"dat-node": "github:datproject/dat-node#hyperswarm",
"dat-registry": "^4.0.1",
"debug": "^4.0.0",
"neat-log": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/discovery-exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function discoveryExit (state, bus) {
bus.once('network:callback', checkExit)

function checkExit () {
if (state.dat.network.connected || !state.opts.exit) return
if (state.dat.network.connections || !state.opts.exit) return
if (state.dat.network.connecting) return setTimeout(checkExit, 500) // wait to see if any connections resolve
var msg = output(`
Dat could not find any connections for that link.
Expand Down

0 comments on commit 15eb81f

Please sign in to comment.