From 1c7cfe5372d26a35bf5c7bffe1898570d7790d77 Mon Sep 17 00:00:00 2001
From: anekos
Date: Sun, 19 Sep 2010 12:25:18 +0000
Subject: ストリームのリスタート時にパラメタをちゃんと付けるように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38496 d0d07461-0603-4401-acd4-de1884942a52
---
twittperator.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
(limited to 'twittperator.js')
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 =
Twittperator
Twitter Client using ChirpStream
OAuth対応Twitterクライアント
- 1.7.1
+ 1.7.2
2.3
2.4
teramako
@@ -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
};
}
--
cgit v1.2.3