Browse Source

Change serverQuit to serverRunning

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
80983dd18c
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/bridge.cpp

+ 4
- 4
src/bridge.cpp View File

@@ -28,7 +28,7 @@ struct BridgeClientConnection;
static BridgeClientConnection *connections[BRIDGE_NUM_PORTS] = {};
static AudioIO *audioListeners[BRIDGE_NUM_PORTS] = {};
static std::thread serverThread;
static bool serverQuit;
static bool serverRunning;


struct BridgeClientConnection {
@@ -387,8 +387,8 @@ static void serverRun() {
#endif

// Accept clients
serverQuit = false;
while (!serverQuit) {
serverRunning = true;
while (serverRunning) {
int client = accept(server, NULL, NULL);
if (client < 0) {
// Wait a bit before attempting to accept another client
@@ -410,7 +410,7 @@ void bridgeInit() {
}

void bridgeDestroy() {
serverQuit = true;
serverRunning = false;
serverThread.join();
}



Loading…
Cancel
Save