added try catch to be safe

This commit is contained in:
Jeff Hill
2001-08-08 23:48:15 +00:00
parent b5c0f11f5f
commit ec6806d071

View File

@@ -631,15 +631,19 @@ extern "C" int epicsShareAPI ca_pend_event (ca_real timeout)
return status;
}
// preserve past odd ball behavior of waiting forever when
// the delay is zero
if ( timeout == 0.0 ) {
while ( true ) {
pcac->pendEvent ( 60.0 );
try {
// preserve past odd ball behavior of waiting forever when
// the delay is zero
if ( timeout == 0.0 ) {
while ( true ) {
pcac->pendEvent ( 60.0 );
}
}
return pcac->pendEvent ( timeout );
}
catch ( ... ) {
return ECA_INTERNAL;
}
return pcac->pendEvent ( timeout );
}
/*