Stop stream timeout for VOD

Hi.

I have a module which extends ModuleBase to control access to the stream using token in the url.

I’m using HLS.

This token is valid only few seconds for security reason.

With live stream it works perfect.

But with vod I have a problem with pause. It looks like there is some time-out after the pause begins. In 20-30 seconds after pause started i see in log “stop stream” and “destroy stream” messages.

And then when the user disables pause Wowza creates new stream, but the url is the same and the token is not valid anymore

So the question is where I can tune this timeout?