mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
set version to 2.4.5
backport the latest patch from main Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -115,6 +115,7 @@ func (t *transfer) ReadAt(p []byte, off int64) (n int, err error) {
|
||||
if t.GetType() == common.TransferDownload {
|
||||
t.TransferError(err)
|
||||
}
|
||||
err = t.ConvertError(err)
|
||||
return
|
||||
}
|
||||
t.HandleThrottle()
|
||||
@@ -139,6 +140,7 @@ func (t *transfer) WriteAt(p []byte, off int64) (n int, err error) {
|
||||
}
|
||||
if err != nil {
|
||||
t.TransferError(err)
|
||||
err = t.ConvertError(err)
|
||||
return
|
||||
}
|
||||
t.HandleThrottle()
|
||||
|
||||
Reference in New Issue
Block a user