quartzjer / hash-im

Minimal telehash-based IM (command line)
MIT License
7 stars 3 forks source link

Dropped packets then `Error: Callback was already called.` #5

Open elimisteve opened 10 years ago

elimisteve commented 10 years ago
steve@hexcore:~/repos/hash-im$ npm start

> hash-im@0.0.5 start /home/steve/repos/hash-im
> node src/cli.js

online as 89d246d768d3d18f7bdd7d8d7eb6f6ac1459340e8b98dd7b35fe6d995bf50190
elimisteve> /to e131f39683855d3a2cf5e1f73f0a95666619faecebcf4e370d596bf20465b6c6
elimisteve->e131f39683855d3a2cf5e1f73f0a95666619faecebcf4e370d596bf20465b6c6> Hello there
elimisteve->e131f39683855d3a2cf5e1f73f0a95666619faecebcf4e370d596bf20465b6c6> this thing working?
elimisteve->e131f39683855d3a2cf5e1f73f0a95666619faecebcf4e370d596bf20465b6c6> elimisteve here, via yet another medium
elimisteve->e131f39683855d3a2cf5e1f73f0a95666619faecebcf4e370d596bf20465b6c6> dropping packet, flooding not allowed to 8520a931979acb2b13dd0f2c0014af75e612814583ed7e193359e2b5a1995c66
dropping packet, flooding not allowed to 9e5ecd193b14abaef376067f80f442be97f6f3110abb865398c2a6ec83a4ee9b
dropping packet, flooding not allowed to c4a9e7da8b165df672ca868c3f5e7e9341b0db61c2b0dd387da316b304aed509
dropping packet, flooding not allowed to 8520a931979acb2b13dd0f2c0014af75e612814583ed7e193359e2b5a1995c66
dropping packet, flooding not allowed to 9e5ecd193b14abaef376067f80f442be97f6f3110abb865398c2a6ec83a4ee9b
dropping packet, flooding not allowed to c4a9e7da8b165df672ca868c3f5e7e9341b0db61c2b0dd387da316b304aed509
dropping packet, flooding not allowed to 8520a931979acb2b13dd0f2c0014af75e612814583ed7e193359e2b5a1995c66
dropping packet, flooding not allowed to 9e5ecd193b14abaef376067f80f442be97f6f3110abb865398c2a6ec83a4ee9b
dropping packet, flooding not allowed to c4a9e7da8b165df672ca868c3f5e7e9341b0db61c2b0dd387da316b304aed509
dropping packet, flooding not allowed to 1b6696cde80da7faf9af6329c81587e2797ff429b16b8335fd273c0fe2143d35
dropping packet, flooding not allowed to 8520a931979acb2b13dd0f2c0014af75e612814583ed7e193359e2b5a1995c66
dropping packet, flooding not allowed to 9e5ecd193b14abaef376067f80f442be97f6f3110abb865398c2a6ec83a4ee9b
dropping packet, flooding not allowed to c4a9e7da8b165df672ca868c3f5e7e9341b0db61c2b0dd387da316b304aed509
dropping packet, flooding not allowed to 1b6696cde80da7faf9af6329c81587e2797ff429b16b8335fd273c0fe2143d35
dropping packet, flooding not allowed to 8520a931979acb2b13dd0f2c0014af75e612814583ed7e193359e2b5a1995c66
dropping packet, flooding not allowed to 9e5ecd193b14abaef376067f80f442be97f6f3110abb865398c2a6ec83a4ee9b
dropping packet, flooding not allowed to c4a9e7da8b165df672ca868c3f5e7e9341b0db61c2b0dd387da316b304aed509
dropping packet, flooding not allowed to 1b6696cde80da7faf9af6329c81587e2797ff429b16b8335fd273c0fe2143d35

/home/steve/repos/hash-im/node_modules/telehash/node_modules/async/lib/async.js:22
            if (called) throw new Error("Callback was already called.");
                              ^
Error: Callback was already called.
    at /home/steve/repos/hash-im/node_modules/telehash/node_modules/async/lib/async.js:22:31
    at Object.addStream.send.seek [as handler] (/home/steve/repos/hash-im/node_modules/telehash/index.js:528:48)
    at Object.stream.handle (/home/steve/repos/hash-im/node_modules/telehash/index.js:428:35)
    at endStream (/home/steve/repos/hash-im/node_modules/telehash/index.js:457:10)
    at /home/steve/repos/hash-im/node_modules/telehash/index.js:212:5
    at Array.forEach (native)
    at hashDel (/home/steve/repos/hash-im/node_modules/telehash/index.js:211:28)
    at /home/steve/repos/hash-im/node_modules/telehash/index.js:231:48
    at Array.forEach (native)
    at meshReap (/home/steve/repos/hash-im/node_modules/telehash/index.js:223:26)
npm ERR! weird error 8
npm ERR! not ok code 0
quartzjer commented 10 years ago

Yeah, I had this happen once too, I'm just about to replace most of the node-telehash code w/ the logic from https://github.com/quartzjer/thjs so it should be fixed soon :)