diff options
| author | Code WvS <code-wvs@quantentunnel.de> | 2015-03-08 16:14:05 +0100 |
|---|---|---|
| committer | Code WvS <code-wvs@quantentunnel.de> | 2015-03-08 16:14:05 +0100 |
| commit | 2e42f45c504d4224424c1da18fea04d7bbe609c6 (patch) | |
| tree | 1290a1f98a6dc07ff066159926e6a11311f95820 /threads.js | |
| parent | 0af3c31381d3386fc737e63a7087da77beaafce5 (diff) | |
| parent | 916dfe65e4afe636ce42e178fe88815b4b86026d (diff) | |
| download | snap-yow-2e42f45c504d4224424c1da18fea04d7bbe609c6.tar.gz snap-yow-2e42f45c504d4224424c1da18fea04d7bbe609c6.zip | |
Merge branch 'p2p' into gh-pages
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1302,15 +1302,13 @@ Process.prototype.sendPeerMessage = function (message, peer) { var stage = this.homeContext.receiver.parentThatIsA(StageMorph), ide = this.homeContext.receiver.parentThatIsA(IDE_Morph); - console.log(peer, stage.peerId); if (peer instanceof List) { peer.asArray().forEach(function (singlePeer) { myself.sendPeerMessage(message, singlePeer); }); return; } - if (peer == stage.peerId) { - console.log('hello self!'); + if (peer == stage.peer.id) { stage.newPeerMessage(message, peer); return; } @@ -1348,7 +1346,7 @@ Process.prototype.reportPeerList = function () { Process.prototype.reportPeerId = function () { var stage = this.homeContext.receiver.parentThatIsA(StageMorph); - return stage.peerId; + return stage.peer.id; }; // Process lists primitives |
