diff options
author | Pixel <Pixel> | 2001-11-04 23:23:13 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-11-04 23:23:13 +0000 |
commit | 0f80b4e1f92f9b12115121e55619e6e810831d41 (patch) | |
tree | 1f44a9deb2f1e581507c31e4e26b37a7f646a1dd /lib/CopyJob.cc | |
parent | 50cef89f47dbc14b00639351463aba20ca4320a0 (diff) |
Better exception handling.
Diffstat (limited to 'lib/CopyJob.cc')
-rw-r--r-- | lib/CopyJob.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CopyJob.cc b/lib/CopyJob.cc index 73864bb..04dff0b 100644 --- a/lib/CopyJob.cc +++ b/lib/CopyJob.cc @@ -16,7 +16,7 @@ int CopyJob::Do() { try { r = s->read(buffer, MIN(COPY_BUFSIZ, tr)); } - catch (IOAgain) { + catch (IOAgain e) { return TASK_WAITING_HANDLE; } current = 0; @@ -24,7 +24,7 @@ int CopyJob::Do() { try { d->write(buffer, r); } - catch (IOAgain) { + catch (IOAgain e) { current = 1; return TASK_WAITING_HANDLE; } |