aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ftpserver.pl23
1 files changed, 12 insertions, 11 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 76b6f4bea..7ebea7c0b 100755
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -517,18 +517,19 @@ sub senddata {
}
return;
}
+
foreach $l (@_) {
- if(!$datadelay) {
- # spit it all out at once
- sockfiltsecondary $l;
- }
- else {
- # pause between each byte
- for (split(//,$l)) {
- sockfiltsecondary $_;
- select(undef, undef, undef, 0.01);
- }
- }
+ if(!$datadelay) {
+ # spit it all out at once
+ sockfiltsecondary $l;
+ }
+ else {
+ # pause between each byte
+ for (split(//,$l)) {
+ sockfiltsecondary $_;
+ select(undef, undef, undef, 0.01);
+ }
+ }
}
}