It has an inline injector on it, and a small control unit to control it. It is constantly injecting at any engine speed with no boost. I have unplugged it, done a cold start and the knock has gone

Just hope it has not damaged anything. Can I short the 2 wires to the boost pressure sensor to see if this stops it? Asking as when unplugged it still injects, and don't want to short them and damage the control unit.
Thanks,
Chris.