From c269007abcc673d52d86cf7a13fc735bb94fe356 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 23 May 2014 14:20:06 -0300 Subject: [PATCH] change order to safely update _followingSeqNum: first save to dht (increment seq) and then save to local storage. Thanks to Alan Chan. --- js/twister_following.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/twister_following.js b/js/twister_following.js index 58f0abf..04f252f 100644 --- a/js/twister_following.js +++ b/js/twister_following.js @@ -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); }