mirror of
https://github.com/restic/restic.git
synced 2026-07-06 23:35:08 +00:00
@@ -59,6 +59,9 @@ func (c Client) GetObject(bucketName, objectName string) (*Object, error) {
|
||||
select {
|
||||
// When the done channel is closed exit our routine.
|
||||
case <-doneCh:
|
||||
// Close the http response body before returning.
|
||||
// This ends the connection with the server.
|
||||
httpReader.Close()
|
||||
return
|
||||
// Request message.
|
||||
case req := <-reqCh:
|
||||
|
||||
Reference in New Issue
Block a user