aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/oss.c6
-rw-r--r--Alc/solaris.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/Alc/oss.c b/Alc/oss.c
index ec45093a..31367365 100644
--- a/Alc/oss.c
+++ b/Alc/oss.c
@@ -102,10 +102,10 @@ static ALuint OSSProc(ALvoid *ptr)
{
AL_PRINT("write failed: %s\n", strerror(errno));
aluHandleDisconnect(pDevice);
- len = 0;
+ break;
}
- else
- Sleep(1);
+
+ Sleep(1);
continue;
}
diff --git a/Alc/solaris.c b/Alc/solaris.c
index 9cb4092a..5461531f 100644
--- a/Alc/solaris.c
+++ b/Alc/solaris.c
@@ -77,10 +77,10 @@ static ALuint SolarisProc(ALvoid *ptr)
{
AL_PRINT("write failed: %s\n", strerror(errno));
aluHandleDisconnect(pDevice);
- len = 0;
+ break;
}
- else
- Sleep(1);
+
+ Sleep(1);
continue;
}