If the war stops, the situation will stop as well. The refugees doesn´t want to runaway from their countries. They have to.
It kind of remind me what happens during the endless war in Jugoslavia, it ended when the war stopped.
It´s humanity, to help the refugees, but it´s not the only thing to do, you have to stop the reason why they are runing away. Ilegal inmigration and people running away from wars are not the same, and are different problems, althought in both cases they are looking for a better life.
But stop a war in which you had a part, selling them the weapons... well, many governments have interest in it.