From 0f9338f5e983a23f4966d810251c2536721d158e Mon Sep 17 00:00:00 2001
From: akwizgran <akwizgran@users.sourceforge.net>
Date: Thu, 14 Apr 2016 12:00:08 +0100
Subject: [PATCH] Message queue manager should be a singleton.

---
 briar-core/src/org/briarproject/clients/ClientsModule.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/briar-core/src/org/briarproject/clients/ClientsModule.java b/briar-core/src/org/briarproject/clients/ClientsModule.java
index 0d42db6c90..ac193646ad 100644
--- a/briar-core/src/org/briarproject/clients/ClientsModule.java
+++ b/briar-core/src/org/briarproject/clients/ClientsModule.java
@@ -14,6 +14,8 @@ import org.briarproject.api.sync.GroupFactory;
 import org.briarproject.api.sync.MessageFactory;
 import org.briarproject.api.sync.ValidationManager;
 
+import javax.inject.Singleton;
+
 import dagger.Module;
 import dagger.Provides;
 
@@ -36,6 +38,7 @@ public class ClientsModule {
 	}
 
 	@Provides
+	@Singleton
 	MessageQueueManager provideMessageQueueManager(DatabaseComponent db,
 			ClientHelper clientHelper, QueueMessageFactory queueMessageFactory,
 			ValidationManager validationManager) {
-- 
GitLab