aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator.js
diff options
context:
space:
mode:
authoranekos2010-09-19 12:25:18 +0000
committeranekos2010-09-19 12:25:18 +0000
commit1c7cfe5372d26a35bf5c7bffe1898570d7790d77 (patch)
tree0741fcf71fb9269a01e4fe782fe2ce3a7cbc9d17 /twittperator.js
parentef8f068e7355d01787f8b9b9f93b739d62df54cf (diff)
downloadvimperator-plugins-1c7cfe5372d26a35bf5c7bffe1898570d7790d77.tar.bz2
ストリームのリスタート時にパラメタをちゃんと付けるように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38496 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twittperator.js')
-rwxr-xr-xtwittperator.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/twittperator.js b/twittperator.js
index 169f8bc..04fda78 100755
--- a/twittperator.js
+++ b/twittperator.js
@@ -28,7 +28,7 @@ let PLUGIN_INFO =
<name>Twittperator</name>
<description>Twitter Client using ChirpStream</description>
<description lang="ja">OAuth対応Twitterクライアント</description>
- <version>1.7.1</version>
+ <version>1.7.2</version>
<minVersion>2.3</minVersion>
<maxVersion>2.4</maxVersion>
<author mail="teramako@gmail.com" homepage="http://d.hatena.ne.jp/teramako/">teramako</author>
@@ -1229,6 +1229,7 @@ let PLUGIN_INFO =
let connectionInfo;
let restartCount = 0;
let startTime;
+ let lastParams;
// 極めて適当につくってます。
// ステータスに対してユニークな文字列を返せばよい
@@ -1249,7 +1250,7 @@ let PLUGIN_INFO =
liberator.echoerr("Twittperator: " + name + " will be restared...");
// 試行済み回数^2 秒後にリトライ
- setTimeout(start, Math.pow(2, restartCount) * 1000);
+ setTimeout(function() start(lastParams), Math.pow(2, restartCount) * 1000);
restartCount++;
}
@@ -1273,6 +1274,7 @@ let PLUGIN_INFO =
stop();
startTime = new Date();
+ lastParams = params;
let useProxy = !!setting.proxyHost;
let requestPath = path;
@@ -1356,6 +1358,7 @@ let PLUGIN_INFO =
sos: sos,
sis: sis,
interval: interval,
+ params: params
};
}