Fixed hang when submitting mappings and no changes are made

Added missing listener call before return

Closes #3381
This commit is contained in:
Luca Cavanna 2013-07-25 16:20:56 +02:00
parent bd466fe39d
commit 1a352756e0
1 changed files with 2 additions and 0 deletions

View File

@ -452,6 +452,8 @@ public class MetaDataMappingService extends AbstractComponent {
}
if (mappings.isEmpty()) {
// no changes, return
listener.onResponse(new Response(true));
return currentState;
}