def update_images(ip, port): s = FileReceiver(9090, 9091) #line below stops thread when main program stops s.daemon = True s.start() videofeed = video_feed() videofeed.daemon=True videofeed.start()
def update_images(ip, port): s = FileReceiver(9090, 9091) #line below stops thread when main program stops s.daemon = True s.start() videofeed = video_feed() videofeed.daemon = True videofeed.start()
def update_sonar(ip, port): s = FileReceiver(9092, 9093) #line below stops thread when main program stops s.daemon = True s.start() sonarfeed = sonar_feed() sonarfeed.daemon=True sonarfeed.start()
from FileReceiver import * from threading import * import time s = FileReceiver() #line below stops thread when main program stops s.daemon = True s.start() for i in range (10): print i time.sleep(1)