summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java
index 7c521b56..04aeb892 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java
@@ -139,7 +139,7 @@ public class FileServer implements IncomingEvent {
}
activeUploads += Math.max(1, upload.getActiveConnectionCount());
}
- if (activeUploads > Constants.MAX_UPLOADS) {
+ if (activeUploads >= Constants.MAX_UPLOADS) {
throw new TTransferRejectedException("Server busy. Too many running uploads (" + activeUploads
+ "/" + Constants.MAX_UPLOADS + ").");
}
@@ -189,7 +189,7 @@ public class FileServer implements IncomingEvent {
}
activeDownloads += Math.max(1, download.getActiveConnectionCount());
}
- if (activeDownloads > Constants.MAX_DOWNLOADS) {
+ if (activeDownloads >= Constants.MAX_DOWNLOADS) {
throw new TTransferRejectedException("Server busy. Too many running uploads (" + activeDownloads
+ "/" + Constants.MAX_UPLOADS + ").");
}