Permalink
Browse files

Merge pull request #8 from shimondoodkin/master

seems event!=='say:' never gets to believe
  • Loading branch information...
2 parents 07c6493 + 7f8d4ae commit c4656e725f7a4f8344eaa00a7edba3fcd95d04c4 @shimondoodkin shimondoodkin committed Jun 24, 2014
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/telepathine.js
View
@@ -324,7 +324,6 @@ Telepathine.prototype.believe = function (key, callback) {
var that = this;
this.on('set:' + key, function(peer, key, value, ttl) {
if (peer!=that.peer_name) {
- if(this.event&&this.event.substring(0,8)=='set:say:')return; // don't believe say: events(creates unwanted recursion) when doing a.believe(*,fn)
if (!_.isEqual(that.get(key), value)) {
that.set(key, value, ttl);
if (callback) {

0 comments on commit c4656e7

Please sign in to comment.