fix serious bug with CPU 100%
authorOrakaro <nhatminh_179@hotmail.com>
Tue, 5 Aug 2014 13:03:51 +0000 (22:03 +0900)
committerOrakaro <nhatminh_179@hotmail.com>
Tue, 5 Aug 2014 13:03:51 +0000 (22:03 +0900)
docs/conf.py
rainbowstream/rainbow.py
setup.py

index 932239f83ac40cd1cc0a28e3ea7029069dfc811e..7c71b88ad878700bdc415e27355fa2cfe402713a 100644 (file)
@@ -48,9 +48,9 @@ copyright = u'2014, Vu Nhat Minh'
 # built documents.
 #
 # The short X.Y version.
-version = '0.6.2'
+version = '0.6.3'
 # The full version, including alpha/beta/rc tags.
-release = '0.6.2'
+release = '0.6.3'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
index 0afa32f87254661d8517eb1834809bf041bd6ecc..eb8f636a6976ee94106260a768c2e7052f18a4d0 100644 (file)
@@ -1669,7 +1669,7 @@ def stream(domain, args, name='Rainbow Stream'):
     # These arguments are optional:
     stream_args = dict(
         timeout=args.timeout,
-        block=False,
+        block=not args.no_block,
         heartbeat_timeout=args.heartbeat_timeout)
     # Track keyword
     query_args = dict()
@@ -1698,7 +1698,7 @@ def stream(domain, args, name='Rainbow Stream'):
                 StreamLock.release()
                 break
             if tweet is None:
-                pass
+                printNicely("-- None --")
             elif tweet is Timeout:
                 printNicely("-- Timeout --")
             elif tweet is HeartbeatTimeout:
index b9cf53935ae984ba1d81977692dfb0b5f82cc64e..20ce446b9596ebac6eae9f8a306d4b5a250ffc02 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ import os
 import os.path
 
 # Bumped version
-version = '0.6.2'
+version = '0.6.3'
 
 # Require
 install_requires = [