A method implemented by a radio network node operating in a time division duplex mode for compensating for local oscillator pulling or pushing in a transmitting chain, comprising: determining (S301), in a digital domain, a correction phase for the local oscillator to offset a phase error caused by the local oscillator pulling or pushing, wherein the determining comprises: enabling a time division duplex, TDD, trigger at the moment when a switching between an uplink and a downlink occurs, enabling by means of the TDD trigger an adaptive phase correction algorithm, wherein the correction phase is provided by the adaptive phase correction algorithm by: accessing a transmitter observing receiver, TOR, signal, wherein the TOR signal is a final output of a power amplifier, PA, of the transmitting chain, and comparing sample by sample in the digital domain a phase of the TOR signal with a phase of a baseband signal input to the transmitting chain; and correcting (S302) the phase of the baseband signal in the digital domain using the correction phase to compensate for the local oscillator pulling or pushing. determining (S301), in a digital domain, a correction phase for the local oscillator to offset a phase error caused by the local oscillator pulling or pushing, wherein the determining comprises: enabling a time division duplex, TDD, trigger at the moment when a switching between an uplink and a downlink occurs, enabling by means of the TDD trigger an adaptive phase correction algorithm, wherein the correction phase is provided by the adaptive phase correction algorithm by: accessing a transmitter observing receiver, TOR, signal, wherein the TOR signal is a final output of a power amplifier, PA, of the transmitting chain, and comparing sample by sample in the digital domain a phase of the TOR signal with a phase of a baseband signal input to the transmitting chain; and correcting (S302) the phase of the baseband signal in the digital domain using the correction phase to compensate for the local oscillator pulling or pushing. enabling a time division duplex, TDD, trigger at the moment when a switching between an uplink and a downlink occurs, enabling by means of the TDD trigger an adaptive phase correction algorithm, wherein the correction phase is provided by the adaptive phase correction algorithm by: accessing a transmitter observing receiver, TOR, signal, wherein the TOR signal is a final output of a power amplifier, PA, of the transmitting chain, and comparing sample by sample in the digital domain a phase of the TOR signal with a phase of a baseband signal input to the transmitting chain; and correcting (S302) the phase of the baseband signal in the digital domain using the correction phase to compensate for the local oscillator pulling or pushing. accessing a transmitter observing receiver, TOR, signal, wherein the TOR signal is a final output of a power amplifier, PA, of the transmitting chain, and comparing sample by sample in the digital domain a phase of the TOR signal with a phase of a baseband signal input to the transmitting chain; and correcting (S302) the phase of the baseband signal in the digital domain using the correction phase to compensate for the local oscillator pulling or pushing. <EOS>