Commit 1b8d262c authored by sletz's avatar sletz
Browse files

Fix on Windows.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3663 0c269be4-1314-0410-8aa9-9f06e86f4224
parent ed864f55
......@@ -53,7 +53,14 @@ JackClientPipeThread::~JackClientPipeThread()
int JackClientPipeThread::Open(JackServer* server) // Open the Server/Client connection
{
fServer = server;
return 0;
// Start listening
if (fThread.Start() != 0) {
jack_error("Cannot start Jack server listener\n");
return -1;
} else {
return 0;
}
}
void JackClientPipeThread::Close() // Close the Server/Client connection
......@@ -70,16 +77,6 @@ void JackClientPipeThread::Close() // Close the Server/Client connection
fRefNum = -1;
}
int JackClientPipeThread::Start()
{
if (fThread.Start() != 0) {
jack_error("Cannot start Jack server listener");
return -1;
}
return 0;
}
bool JackClientPipeThread::Execute()
{
jack_log("JackClientPipeThread::Execute");
......
......@@ -52,9 +52,7 @@ class JackClientPipeThread : public JackRunnableInterface
int Open(JackServer* server); // Open the Server/Client connection
void Close(); // Close the Server/Client connection
int Start();
bool HandleRequest();
// JackRunnableInterface interface
......@@ -90,8 +88,10 @@ class JackWinNamedPipeServerChannel : public JackRunnableInterface
JackWinNamedPipeServerChannel();
~JackWinNamedPipeServerChannel();
int Open(const char* server_name, JackServer* server); // Open the Server/Client connection
void Close(); // Close the Server/Client connection
int Open(const char* server_name, JackServer* server); // Open the Server/Client connection
void Close(); // Close the Server/Client connection
int Start();
// JackRunnableInterface interface
bool Init();
......
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