Die properly if two instances are ran
onionjake opened this issue · 1 comments
onionjake commented
If you run two clearskies instances you get a crashed thread, but clearskies continues to run. It should exit.
control> Thread crash: Daemon already running
control> /home/jake/repos/clearskies/lib/control_server.rb:23:in run' control> /home/jake/repos/clearskies/lib/control_server.rb:13:in
block in start'
control> /home/jake/repos/clearskies/lib/simple_thread.rb:72:in block (2 levels) in initialize' control> /home/jake/repos/clearskies/lib/simple_thread.rb:38:in
glock'
control> /home/jake/repos/clearskies/lib/simple_thread.rb:70:in `block in initialize'