From a12222283bcac9f63ba4c3e4bc24767d64248227 Mon Sep 17 00:00:00 2001 From: Orakaro Date: Tue, 5 Aug 2014 22:03:51 +0900 Subject: [PATCH] fix serious bug with CPU 100% --- docs/conf.py | 4 ++-- rainbowstream/rainbow.py | 4 ++-- setup.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 932239f..7c71b88 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 0afa32f..eb8f636 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -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: diff --git a/setup.py b/setup.py index b9cf539..20ce446 100644 --- 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 = [ -- 2.25.1