[Tween-svn] [1150] 再接続チェックを1分ごとに行うよう変更

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 12月 2日 (木) 09:36:30 JST


Revision: 1150
          http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1150
Author:   kiri_feather
Date:     2010-12-02 09:36:30 +0900 (Thu, 02 Dec 2010)

Log Message:
-----------
再接続チェックを1分ごとに行うよう変更
US未稼動時の最終データ受信日時を現在時刻ではなくした

Modified Paths:
--------------
    trunk/Tween/Tween.vb
    trunk/Tween/Twitter.vb


-------------- next part --------------
Modified: trunk/Tween/Tween.vb
===================================================================
--- trunk/Tween/Tween.vb	2010-12-01 23:32:03 UTC (rev 1149)
+++ trunk/Tween/Tween.vb	2010-12-02 00:36:30 UTC (rev 1150)
@@ -6589,7 +6589,7 @@
         blinkCnt += 1
         usCheckCnt += 1
 
-        If usCheckCnt > 600 Then    '2min
+        If usCheckCnt > 300 Then    '1min
             usCheckCnt = 0
             If Not Me.IsReceivedUserStream Then
                 TraceOut("ReconnectUserStream")

Modified: trunk/Tween/Twitter.vb
===================================================================
--- trunk/Tween/Twitter.vb	2010-12-01 23:32:03 UTC (rev 1149)
+++ trunk/Tween/Twitter.vb	2010-12-02 00:36:30 UTC (rev 1150)
@@ -2792,7 +2792,7 @@
             If userStream IsNot Nothing Then
                 Return userStream.LastTime
             Else
-                Return Now
+                Return New DateTime
             End If
         End Get
     End Property
@@ -2964,7 +2964,6 @@
             _streamThread.Name = "UserStreamReceiver"
             _streamThread.IsBackground = True
             _streamThread.Start()
-            Me.LastTime = Now
         End Sub
 
         Public ReadOnly Property Enabled() As Boolean



Tween-svn メーリングリストの案内
Back to archive index