diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2016-12-07 09:30:49 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2016-12-07 09:30:49 -0500 |
commit | a4ba22fecc8db468377ab14f5652e4176f0488b7 (patch) | |
tree | e9fd4a001cda0cf06624f6fda54d92104fa4f011 /indra/llaudio/llaudiodecodemgr.h | |
parent | e1b0317c04124b4fc72f14dee1c2125cf970b0e0 (diff) |
DRTVWR-418: Revamp testrunner to shutdown server Thread at end.
Instead of having testrunner.run()'s caller pass a Thread object on which to
run the caller's server instance's serve_forever() method, just pass the
server instance. testrunner.run() now constructs the Thread. This API change
allows run() to also call shutdown() on the server instance when done, and
then join() the Thread.
The hope is that this will avoid the Python runtime forcing the process
termination code to 1 due to forcibly killing the daemon thread still running
serve_forever().
While at it, eliminate calls to testrunner.freeport() -- just make the runtime
pick a suitable port instead.
Diffstat (limited to 'indra/llaudio/llaudiodecodemgr.h')
0 files changed, 0 insertions, 0 deletions