Start writer right after creating it

This commit is contained in:
Frank Schmirler
2012-11-02 09:02:22 +01:00
parent 84db6323a6
commit b614fa0ec3
2 changed files with 2 additions and 1 deletions

View File

@@ -128,6 +128,7 @@ void cStreamdevStreamer::Start(cTBSocket *Socket)
{
Dprintf("start streamer\n");
m_Writer = new cStreamdevWriter(Socket, this);
m_Writer->Start();
Attach();
}
@@ -135,7 +136,6 @@ void cStreamdevStreamer::Activate(bool On)
{
if (On && !Active()) {
Dprintf("activate streamer\n");
m_Writer->Start();
cThread::Start();
}
}