A method for operating a door actuator of a door system, in particular a swing leaf door, with at least one sensor unit, with which a person is recorded, and with a control unit, with which information is received from the sensor unit about the presence and/or about spatial dimensions and movements of persons, and furthermore with a pivotally movable door leaf, wherein the method has at least the following steps: - carrying out a swivelling movement of the door leaf by means of the door actuator, - determining an interaction between the door leaf and the person, wherein the interaction between the door leaf and the person - is pushing the opening movement of the door leaf, - and/or relates to an interruption, slowing down and/or stopping of the walking movement of the person shortly before the person passes through the swing leaf door, - and/or an acceleration of the person shortly before the person passes through the swing leaf door, - determining a correction value for the swivelling movement of the door leaf on the basis of the interaction, wherein the control unit has a correction value memory in which the correction values are stored, - wherein the correction values are optimised in the correction value memory via an algorithm over the in particular initial period of use of the swing leaf door, in that the correction values for future swivelling movements of the door leaf are prioritised such that the future number of interactions between the door leaf and the person walking through the swing leaf door is minimised, and - correcting future swivelling movements of the door leaf by the correction value, wherein - the swivelling movement of the door leaf is carried out based on the information recorded by the sensor unit and additionally based on the correction value. - carrying out a swivelling movement of the door leaf by means of the door actuator, - determining an interaction between the door leaf and the person, wherein the interaction between the door leaf and the person - is pushing the opening movement of the door leaf, - and/or relates to an interruption, slowing down and/or stopping of the walking movement of the person shortly before the person passes through the swing leaf door, - and/or an acceleration of the person shortly before the person passes through the swing leaf door, - is pushing the opening movement of the door leaf, - and/or relates to an interruption, slowing down and/or stopping of the walking movement of the person shortly before the person passes through the swing leaf door, - and/or an acceleration of the person shortly before the person passes through the swing leaf door, - determining a correction value for the swivelling movement of the door leaf on the basis of the interaction, wherein the control unit has a correction value memory in which the correction values are stored, - wherein the correction values are optimised in the correction value memory via an algorithm over the in particular initial period of use of the swing leaf door, in that the correction values for future swivelling movements of the door leaf are prioritised such that the future number of interactions between the door leaf and the person walking through the swing leaf door is minimised, and - correcting future swivelling movements of the door leaf by the correction value, wherein - the swivelling movement of the door leaf is carried out based on the information recorded by the sensor unit and additionally based on the correction value.