<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -81,7 +81,7 @@ class TwitterUI &lt; Shoes
   @@context = {
     :twitter     =&gt; nil,
     :tweets_flow =&gt; nil,
-    :sleeptime   =&gt; 120,      # Check timeline every 2 minutes
+    :sleeptime   =&gt; 180,      # Check timeline every 3 minutes
     :timeout     =&gt; 30        # Don't wait for Twitter more than 30 seconds
   }
 
@@ -167,11 +167,13 @@ class TwitterUI &lt; Shoes
     Thread.new do
       @@context[:check_thread] = Thread.current
       while true do
-        timeouted = (Time.now - @@context[:twitter_check]) &gt; @@context[:timeout]
-        if @@context[:twitter_check] != nil &amp;&amp; timeouted
-          @@context[:twitter_thread] = kill_thread @@context[:twitter_thread]
-          load_tweets 'Loading...'
-          wait_for_tweets
+        unless @@context[:twitter_check].nil?
+          timeouted = (Time.now - @@context[:twitter_check]) &gt; @@context[:timeout]
+          if timeouted
+            @@context[:twitter_thread] = kill_thread @@context[:twitter_thread]
+            load_tweets 'Loading...'
+            wait_for_tweets
+          end
         end
         sleep 5
       end</diff>
      <filename>twitterui.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bb4939131b3d52c569d5b26b203e583d6637269a</id>
    </parent>
  </parents>
  <author>
    <name>Arnaud Berthomier</name>
    <email>oz@cyprio.net</email>
  </author>
  <url>http://github.com/oz/twitterui/commit/c3988cdfa7bcde675c6e2815470fe1e308e507d3</url>
  <id>c3988cdfa7bcde675c6e2815470fe1e308e507d3</id>
  <committed-date>2008-07-01T07:58:25-07:00</committed-date>
  <authored-date>2008-07-01T07:58:25-07:00</authored-date>
  <message>fix: control thread silently crashed. damn threads. Also, twitter checking interval is now every 3 minutes.</message>
  <tree>f7f01659482f1bfed9bee06e514088f24163d3e6</tree>
  <committer>
    <name>Arnaud Berthomier</name>
    <email>oz@cyprio.net</email>
  </committer>
</commit>
