Kodi stops receiving JSON API



Hi, I’m monitoring it, for some reasons (I?m going to find) Kodi on TV results on my Node Red inactive, it shows on tv the home screen, it’s enough I press a button on TV remote to get it back active on NR, then somehow automatically fets the last command I’ve sent.
my Kodi module crashed, maybe it’s because of that, but Kodi hangs waiting for old connection? Strange