Fixed busy loop in vncterm