meetecho/janus-gateway — pull request #109 by ploxiln (2014-12-17 01:14:40+00:00)
Title: unref or join some threads

avoid leaving thread state and stacks on heap after threads exit

I noticed a "thread stack leak", this is my attempt to fix it.

This isn't ready yet, because the watchdog shutdown synchronization isn't quite right yet, and janus hangs for a bit on shutdown (though it eventually completes it). So consider this a RFC and WIP.