Problem with telnet console


I have a problem with the telnet console that doesn't display the prompt if the previous connection has fallen or not closed properly with the "EXIT" command (which calls the nx_telnet_server_disconnect function).

When the new connection is made, the prompt doesn't appear, if I press enter, the prompt appears again.
Sporadically, at the next reconnection the telnet section works but the console doesn't work, I must close it and reopen it from the serial console to make work again.
Do you have any idea how I can fix it?

Best Regards