func Pbs_disconnect(handle int) error { ret := C.pbs_disconnect(C.int(handle)) if ret != 0 { return errors.New(Pbs_strerror(int(C.pbs_errno))) } return nil }
// Disconnect close connection. func (t *Torque) Disconnect() { C.pbs_disconnect(C.int(t.serverID)) t.serverID = -1 }