Remove duplicate registration of service

If the serviceName does not contain ":" this leads to duplicate
registration of firehose with same name
This commit is contained in:
nishantmonu51 2014-01-10 01:17:23 +05:30
parent 81cdf1b6d0
commit d28f9daccb
1 changed files with 0 additions and 1 deletions

View File

@ -86,7 +86,6 @@ public class EventReceiverFirehoseFactory implements FirehoseFactory
if (chatHandlerProvider.isPresent()) {
log.info("Found chathandler of class[%s]", chatHandlerProvider.get().getClass().getName());
chatHandlerProvider.get().register(serviceName, firehose);
chatHandlerProvider.get().register(serviceName.replaceAll(".*:", ""), firehose); // rofl
} else {
log.info("No chathandler detected");
}