summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/threads.js b/threads.js
index ccefb6f..1938f5f 100644
--- a/threads.js
+++ b/threads.js
@@ -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