Hungary called on the European Union to speed up accession talks with the western Balkans on Tuesday, so as to "protect" the bloc from a future influx of refugees.
Foreign Minister Peter Szijjarto warned of unspecified security risks if Brussels allows negotiations with the Balkan nations to drag on too long.
Budapest filed a legal challenge with the European Court of Justice late last year against the mandatory resettlement quotas, while authorities also erected a fence and brought in tough new laws punishing illegal entry.
"The countries of the western Balkans should be strong enough to protect the EU against another wave of migration," Szijjarto told reporters after a Warsaw meeting with his central European counterparts and EU foreign policy chief Federica Mogherini.
Before it was shut down in March, the so-called Balkan route was taken by hundreds of thousands of refugees from the Middle East, Asia and Africa on their way to western Europe.
"The quickest route to strengthening these countries is to offer them accession to the EU," Szijjarto added.
He said the Visegrad Four group of countries -- the Czech Republic, Hungary, Poland and Slovakia -- will work to accelerate the negotiations.
The six Balkan nations wishing to join the EU are Albania, Bosnia, Kosovo, Macedonia, Montenegro and Serbia.
However, the bloc has ruled out any further enlargement before 2020, and even that date looks unrealistic.
"We should be enlarging in the upcoming five years. What's more, we should be enlarging the EU immediately," protested Szijjarto.
"If the enlargement process is still going to be so slow as it was up until now, this may lead to serious risks both in the security and in the economic dimension."
Mogherini for her part told reporters that the EU and the western Balkans had already made "impressive progress".
Many in the western Balkans -- a region of widespread poverty and turbulence that is home to around 20 million people -- see the 28-nation bloc as a beacon of stability and prosperity.
Membership negotiations have already started with Serbia and Montenegro, but are yet to get underway for Albania and Macedonia. Bosnia and Kosovo have been promised the prospect of membership when they are ready.