summaryrefslogtreecommitdiff
path: root/src/transports/smart.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transports/smart.c')
-rw-r--r--src/transports/smart.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transports/smart.c b/src/transports/smart.c
index 5242beb65..e298f3510 100644
--- a/src/transports/smart.c
+++ b/src/transports/smart.c
@@ -27,8 +27,7 @@ static int git_smart__recv_cb(gitno_buffer *buf)
if (t->packetsize_cb(bytes_read, t->packetsize_payload)) {
git_atomic_set(&t->cancelled, 1);
- giterr_clear();
- return GIT_EUSER;
+ return giterr_user_cancel();
}
return (int)(buf->offset - old_len);