Errors after a few minutes on video

I am experiencing an issue again here. I have it setup so there is a button in my app to disconnect the stream by the publisher, it uses the rest api to send the stop signal based on the stream id.

This all works fine until i’ve been on the video for a few minutes, after 3-5 minutes the api disconnect call fails and the recording never seems to be processed?

Don’t know why I seem to have two accounts here, but this was not an issue with OpenVidu it was my fault. One part of the program was overriding another and loosing content