File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ def main():
5252 parser .add_argument ("--logfile" , type = str , help = "Redirect logging output to a file on disk." )
5353 args = parser .parse_args ()
5454
55+ print ("Connecting..." )
56+ proxy = Proxy (args .in_address , args .out_address )
57+ print ("Receiving on address %s; publishing to address %s." % (proxy .in_port , proxy .out_port ))
5558 if args .verbose :
5659 from bluesky .log import config_bluesky_logging
5760
@@ -62,11 +65,8 @@ def main():
6265 else :
6366 config_bluesky_logging (level = level )
6467 # Set daemon to kill all threads upon IPython exit
65- threading .Thread (target = start_dispatcher , args = (args . out_address ), daemon = True ).start ()
68+ threading .Thread (target = start_dispatcher , args = (proxy . out_port , ), daemon = True ).start ()
6669
67- print ("Connecting..." )
68- proxy = Proxy (args .in_address , args .out_address )
69- print ("Receiving on address %s; publishing to address %s." % (args .in_address , args .out_address ))
7070 print ("Use Ctrl+C to exit." )
7171 try :
7272 proxy .start ()
You can’t perform that action at this time.
0 commit comments