fix a bug cause exception when click meun->port->open as the port is opened.
fix a bug cause exception when click meun->port->open as the port is opened.

gamesun/MyTerm-for-YellowStone,gamesun/MyTerm-for-YellowStone