Bug fix from last revision

This commit is contained in:
Meher Mankikar 2023-06-19 16:25:01 -07:00
parent 97d7831446
commit ad26ac5149

View file

@ -43,10 +43,12 @@ public class StreamExistenceManager {
throw new RuntimeException("Stream is not active, instead in status: " + response.streamDescriptionSummary().streamStatus());
}
return true;
} catch (ResourceNotFoundException e) {
return false;
} catch (ExecutionException e) {
throw new RuntimeException(e);
if (e.getCause() instanceof ResourceNotFoundException) {
return false;
} else {
throw new RuntimeException(e);
}
} catch (Exception e) {
throw new RuntimeException(e);
}