modify switch code
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Fri, 30 May 2014 06:10:48 +0000 (15:10 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Fri, 30 May 2014 06:10:48 +0000 (15:10 +0900)
rainbowstream/rainbow.py

index 64aecf741d8fa97a66bd508a24242c54c78e025e..282437b849b9e6470f8357250725493b04b27247 100644 (file)
@@ -171,12 +171,10 @@ def switch():
             keyword = g['stuff'].split()[1]
             if keyword[0] == '#':
                 keyword = keyword[1:]
-
             # Kill old process
             os.kill(g['stream_pid'], signal.SIGKILL)
             args = parse_arguments()
             args.track_keywords = keyword
-
             # Start new process
             p = Process(
                 target=stream, 
@@ -188,11 +186,9 @@ def switch():
 
         # Personal stream
         elif target == 'mine':
-
             # Kill old process
             os.kill(g['stream_pid'], signal.SIGKILL)
             args = parse_arguments()
-
             # Start new process
             p = Process(
                 target=stream,