@cryptotaxi247 / kubo / commits / f26d8c7b4

respect context cancellation in add

License: MIT Signed-off-by: Jeromy <why@ipfs.io>

Jeromy committed Jun 22, 2016 at 17:16 UTC f26d8c7b4657f51aa81749d15a962e6b6831ac18
1 file changed +3
core/commands/add.go
+3
@@ -308,6 +308,9 @@ You can now refer to the added file in a gateway, like so:
308 bar.ShowBar = true
309 bar.ShowTimeLeft = true
310 }
311 + case <-req.Context().Done():
312 + res.SetError(req.Context().Err(), cmds.ErrNormal)
313 + return
314 }
315 }
316 },