libmediasoupclient threading

Hi, first of all, great work on this library.

My question is regarding libmediasoupclient threading, when creating a Transport without peer connection options, the associated peer connection is creating the network, signaling and worker threads but it seems that they are never stopped/quit. This is causing that for every new transport, 3 new threads are created, and also causing a memory leak on my current implementation.

Is there any reason for not closing them?

Maybe a bug indeed. Could you write a PR?

Ok cool… No problem.
Thanks for replying.

Opened a PR. Hope it helps.

I’ve tested within my implementation and leaks are gone.