The function was checking the psys flag for this, but since for disconnect/connect the same psys is used as source and target, the flag must be passed explicitly.
The function was checking the psys flag for this, but since for disconnect/connect the same psys is used as source and target, the flag must be passed explicitly.