// Disconnect from printer private void Disconnect(ReqPkt pkt) { if (null != this.ijp) { ijp.Disconnect(); ijp.Dispose(); ijp = null; ComOn = IJPOnlineStatus.Offline; } }