[FIX] Исправлена ошибка с отваливающимся соеденением по таймауту во время хеширования

This commit is contained in:
Gravit 2019-03-14 02:26:20 +07:00
parent 3f887ef619
commit 7e5fafa159
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -303,9 +303,16 @@ public Integer getLegacyType() {
} }
@Override @Override
protected UpdateRequestEvent requestDo(HInput input, HOutput output) throws IOException, SignatureException { public UpdateRequestEvent request() throws Exception {
Files.createDirectories(dir); Files.createDirectories(dir);
localDir = new HashedDir(dir, matcher, false, digest); localDir = new HashedDir(dir, matcher, false, digest);
// Start request
return super.request();
}
@Override
protected UpdateRequestEvent requestDo(HInput input, HOutput output) throws IOException, SignatureException {
// Write update dir name // Write update dir name
output.writeString(dirName, 255); output.writeString(dirName, 255);
output.flush(); output.flush();