A resonant power converter, comprising: a half bridge inverter comprising a first switch and a second switch , wherein an output is defined from a node between the switches; an LLC resonant circuit coupled to the output, wherein an electrical feedback parameter (vC) is provided by the LLC resonant circuit, wherein at a first moment in time the electrical feedback parameter is equal to the value of a predefined electrical feedback parameter threshold and wherein the slope of the electrical feedback parameter has a sign equal to that of the sign of the electrical feedback parameter threshold and at a second moment in time the electrical feedback parameter is equal to the value of the electrical feedback parameter threshold and wherein the slope of the electrical feedback parameter has a sign opposite to that of the sign of the electrical feedback parameter threshold; a control circuit for generating a gate drive signal for controlling the switching of the first switch and the second switch in a self-oscillating manner in dependence on a comparison between the electrical feedback parameter with said predefined electrical feedback parameter threshold, whereby a high gate drive signal turns on the first switch and turns off the second switch and a low gate drive signal turns off the first switch and turns on the second switch , wherein the control circuit comprises: a detecting circuit for detecting a sign of a slope of the electrical feedback parameter; and a preventing circuit for preventing a change in the gate drive signal starting after the first moment in time and before the second moment in time and ending after the second moment in time and before the next first moment in time. a half bridge inverter comprising a first switch and a second switch , wherein an output is defined from a node between the switches; an LLC resonant circuit coupled to the output, wherein an electrical feedback parameter (vC) is provided by the LLC resonant circuit, wherein at a first moment in time the electrical feedback parameter is equal to the value of a predefined electrical feedback parameter threshold and wherein the slope of the electrical feedback parameter has a sign equal to that of the sign of the electrical feedback parameter threshold and at a second moment in time the electrical feedback parameter is equal to the value of the electrical feedback parameter threshold and wherein the slope of the electrical feedback parameter has a sign opposite to that of the sign of the electrical feedback parameter threshold; a control circuit for generating a gate drive signal for controlling the switching of the first switch and the second switch in a self-oscillating manner in dependence on a comparison between the electrical feedback parameter with said predefined electrical feedback parameter threshold, whereby a high gate drive signal turns on the first switch and turns off the second switch and a low gate drive signal turns off the first switch and turns on the second switch , wherein the control circuit comprises: a detecting circuit for detecting a sign of a slope of the electrical feedback parameter; and a preventing circuit for preventing a change in the gate drive signal starting after the first moment in time and before the second moment in time and ending after the second moment in time and before the next first moment in time. <EOS>