The user may set behavior_timeout=0. This means that they don't want
to run the behavior. As it is now, Brozzler will invoke
brozzler.behavior_script to load the script and self.run_behavior
to execute it.
We will run the behavior using Runtime.evaluate but then it will be
terminated immediately because of timeout=0.
It is better to skip behavior loading and running when
behavior_timeout=0.
The user may set
behavior_timeout=0
. This means that they don't want to run the behavior. As it is now, Brozzler will invokebrozzler.behavior_script
to load the script andself.run_behavior
to execute it. We will run the behavior usingRuntime.evaluate
but then it will be terminated immediately because of timeout=0.It is better to skip behavior loading and running when
behavior_timeout=0
.