This commit is contained in:
Administrator
2024-08-18 17:47:11 +08:00
parent e4f4c77c19
commit e243203535
121 changed files with 7499 additions and 2169 deletions
+4 -4
View File
@@ -30,15 +30,17 @@ public class StreamBridge extends Task{
// fos.write(b, 0, v);
out.write(b,0,v);
out.flush();
if(delay>0)
if(delay>0) {
try {
Thread.sleep(delay);
} catch (InterruptedException e) {
e.printStackTrace();
}
}else {
Thread.yield();
}
}
} catch (IOException e) {
// TODO 自动生成的 catch 块
e.printStackTrace();
}finally {
/*if(fos!=null)
@@ -51,14 +53,12 @@ public class StreamBridge extends Task{
if(in!=null)
in.close();
} catch (IOException e) {
// TODO 自动生成的 catch 块
e.printStackTrace();
}
try {
if(in!=null)
out.close();
} catch (IOException e) {
// TODO 自动生成的 catch 块
e.printStackTrace();
}
}