mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +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:
@@ -67,6 +67,7 @@ func (t *transfer) Read(p []byte) (n int, err error) {
|
||||
}
|
||||
if err != nil && err != io.EOF {
|
||||
t.TransferError(err)
|
||||
err = t.ConvertError(err)
|
||||
return
|
||||
}
|
||||
t.HandleThrottle()
|
||||
@@ -85,6 +86,7 @@ func (t *transfer) Write(p []byte) (n int, err error) {
|
||||
}
|
||||
if err != nil {
|
||||
t.TransferError(err)
|
||||
err = t.ConvertError(err)
|
||||
return
|
||||
}
|
||||
t.HandleThrottle()
|
||||
|
||||
Reference in New Issue
Block a user