Browse Source

change order to safely update _followingSeqNum: first save to dht (increment seq) and then save to local storage.

Thanks to Alan Chan.
master
Miguel Freitas 10 years ago
parent
commit
c269007abc
  1. 2
      js/twister_following.js

2
js/twister_following.js

@ -301,8 +301,8 @@ function saveFollowingToDht() { @@ -301,8 +301,8 @@ function saveFollowingToDht() {
// save following to local storage, dht and json rpc
function saveFollowing(cbFunc, cbArg) {
saveFollowingToStorage();
saveFollowingToDht();
saveFollowingToStorage();
updateFollowing(cbFunc, cbArg);
}

Loading…
Cancel
Save