diff options
author | Pixel <Pixel> | 2001-11-27 15:10:33 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-11-27 15:10:33 +0000 |
commit | 76b2e3c19278da49193aa1599a35197b279b4439 (patch) | |
tree | 01a9c64a71a7e4568b5f0ad5db3077e0c0311b08 /lib/ReadJob.cc | |
parent | 29f8cedf68c5e45ca20078a2a34a07875d7dea5b (diff) |
Bug in taskman...
Diffstat (limited to 'lib/ReadJob.cc')
-rw-r--r-- | lib/ReadJob.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ReadJob.cc b/lib/ReadJob.cc index 6fab08b..3083040 100644 --- a/lib/ReadJob.cc +++ b/lib/ReadJob.cc @@ -17,7 +17,7 @@ int ReadJob::Do() throw (GeneralException) { *s >> buff; } catch (IOAgain e) { - throw TaskSwitch(); + Suspend(TASK_ON_HOLD); } case 1: try { @@ -32,7 +32,7 @@ int ReadJob::Do() throw (GeneralException) { } if (!s->IsClosed()) { - throw TaskSwitch(); + Suspend(TASK_ON_HOLD); } return TASK_DONE; |