Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

small fix believe event!=='say:' to event!=='set:say:' #5

Merged
merged 1 commit into from

1 participant

@shimondoodkin
Collaborator

No description provided.

@shimondoodkin shimondoodkin merged commit 07c6493 into automenta:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/telepathine.js
View
2  lib/telepathine.js
@@ -324,7 +324,7 @@ 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.substring(0,4)=='say:')return; // don't beleive say: events(creates unwanted recursion) when doing a.believe(*,fn)
+ 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) {
Something went wrong with that request. Please try again.