Commit 64d4f802 authored by jcacerec's avatar jcacerec
Browse files

fixed a new bug in server

parent 5103ba49
......@@ -400,6 +400,7 @@ public:
/// \brief Starts for the SERVER mode
/// \param timout Set the server to timeout after 2 seconds if no client connections are received.
/// Usefull for the multithreaded server
/// \return 0 on success, -1 on error
int serverStart(bool timeout = false, int udpTimeout = gTimeOutMultiThreadedServer)
throw(std::invalid_argument, std::runtime_error);
/// \brief Stats for the Client to Ping Server
......
......@@ -155,8 +155,6 @@ void JackTripWorker::run()
return;
}
// Start Threads and event loop
jacktrip.startProcess();
jacktrip.start(); // ########### JamTest Only #################
......
......@@ -87,6 +87,10 @@ public:
int num_channels);
/// Stop and remove thread from pool
void stopThread();
int getID()
{
return mID;
}
private slots:
......
......@@ -186,7 +186,6 @@ void UdpMasterListener::run()
// --------------------
// Register JackTripWorker with the master listener
delete mJTWorkers->at(id); // just in case the Worker was previously created
mJTWorkers->insert(id, NULL);
mJTWorkers->replace(id, new JackTripWorker(this));
// redirect port and spawn listener
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment