Do the end points of each line 'line up'? I have had this happen where I thought they should line up, but were off by a little bit. If you select one of the lines, click in the endpoint grip, move you mouse and select the end point of the line to which you want to join it, then try the pedit...