summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2015-03-08 16:13:29 +0100
committerGubolin <gubolin@fantasymail.de>2015-03-08 16:13:29 +0100
commit916dfe65e4afe636ce42e178fe88815b4b86026d (patch)
tree287c4bb73e89b51fc260eccf2795249e920c6a8f /threads.js
parente3f7a47d95711effb8ab4b95b1c5fdde9178a72a (diff)
downloadsnap-yow-916dfe65e4afe636ce42e178fe88815b4b86026d.tar.gz
snap-yow-916dfe65e4afe636ce42e178fe88815b4b86026d.zip
another attempt to fix disconnect issues
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 165c7fc..d8ec04f 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