From 76b2e3c19278da49193aa1599a35197b279b4439 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 27 Nov 2001 15:10:33 +0000 Subject: Bug in taskman... --- lib/ReadJob.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ReadJob.cc') 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; -- cgit v1.2.3