added try catch to be safe
This commit is contained in:
1 parent
b5c0f11f5f
commit
ec6806d071
1 file changed
+11
-7
+11
-7
@@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user