service
service copied to clipboard
unable to exit the program after run() function has returned
I'm using the simple example but once I print something in the run() function the program does not exit...
I've tried using s.Stop()
and p.Stop(s)
but they are equally unaffective...
I guess it should not be that tricky but still I cannot solve the problem...
Do you have an example? or at least what line should I modify to exit the program after the run() function has terminated?
thanks in advance