Skip to content

Commit

Permalink
Blocking an infinite retry loop in set()
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Feb 4, 2017
1 parent 5a2ca79 commit f60219f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/haro.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Jason Mulligan <jason.mulligan@avoidwork.com>
* @copyright 2017
* @license BSD-3-Clause
* @version 3.1.15
* @version 3.1.16
*/
"use strict";

Expand Down Expand Up @@ -872,7 +872,7 @@
return defer.promise.then(arg => {
this.onset(arg, batch, retry);

if (!batch && this.uri) {
if (!batch && !retry && this.uri) {
this.transmit(key, x, og, override, method).catch(e => {
if (this.logging) {
console.error(e.stack || e.message || e);
Expand Down Expand Up @@ -1155,7 +1155,7 @@
}

factory.transform = cast;
factory.version = "3.1.15";
factory.version = "3.1.16";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
Expand Down
6 changes: 3 additions & 3 deletions lib/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Jason Mulligan <jason.mulligan@avoidwork.com>
* @copyright 2017
* @license BSD-3-Clause
* @version 3.1.15
* @version 3.1.16
*/
"use strict";

Expand Down Expand Up @@ -1068,7 +1068,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
return defer.promise.then(function (arg) {
_this13.onset(arg, batch, retry);

if (!batch && _this13.uri) {
if (!batch && !retry && _this13.uri) {
_this13.transmit(key, x, og, override, method).catch(function (e) {
if (_this13.logging) {
console.error(e.stack || e.message || e);
Expand Down Expand Up @@ -1407,7 +1407,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}

factory.transform = cast;
factory.version = "3.1.15";
factory.version = "3.1.16";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
Expand Down
2 changes: 1 addition & 1 deletion lib/haro.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/haro.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haro",
"version": "3.1.15",
"version": "3.1.16",
"description": "Harō is a modern immutable DataStore",
"main": "lib/haro.es6.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@
return defer.promise.then(arg => {
this.onset(arg, batch, retry);

if (!batch && this.uri) {
if (!batch && !retry && this.uri) {
this.transmit(key, x, og, override, method).catch(e => {
if (this.logging) {
console.error(e.stack || e.message || e);
Expand Down

0 comments on commit f60219f

Please sign in to comment.