If you own the two nodes, the keysend is key to maintain some kind of balance in the channel and avoid this problems.