commit | 89fafcce61c6d1c65556cf614e29ed31fd4c44ba | [log] [tgz] |
---|---|---|
author | Christian Aistleitner <christian@quelltextlich.at> | Tue Dec 15 10:26:36 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Dec 15 10:26:36 2015 +0000 |
tree | df5356f64de18db68385814971afb5e684def45c | |
parent | b2c121a224ec695a900c028a10ae0478b0a82a69 [diff] | |
parent | 206366d4467ebcbc67e214cf6d2cb83dfc649d4f [diff] |
Merge "Drop deps from BUCK's genrule"
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/rtc/RTCModule.java b/src/main/java/com/googlesource/gerrit/plugins/its/rtc/RTCModule.java index 92e3789..9d3d79c 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/its/rtc/RTCModule.java +++ b/src/main/java/com/googlesource/gerrit/plugins/its/rtc/RTCModule.java
@@ -26,6 +26,7 @@ import com.google.gerrit.server.config.ProjectConfigEntry; import com.google.inject.AbstractModule; import com.google.inject.Inject; +import com.google.inject.Scopes; import com.googlesource.gerrit.plugins.its.base.ItsHookModule; import com.googlesource.gerrit.plugins.its.base.its.ItsFacade; @@ -51,7 +52,7 @@ protected void configure() { if (isConfigPresent(pluginName)) { LOG.info("RTC is configured as ITS"); - bind(ItsFacade.class).to(RTCItsFacade.class); + bind(ItsFacade.class).to(RTCItsFacade.class).in(Scopes.SINGLETON); bind(ProjectConfigEntry.class) .annotatedWith(Exports.named("enabled"))
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/rtc/network/RTCClient.java b/src/main/java/com/googlesource/gerrit/plugins/its/rtc/network/RTCClient.java index 0d7ad35..3dc52ce 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/its/rtc/network/RTCClient.java +++ b/src/main/java/com/googlesource/gerrit/plugins/its/rtc/network/RTCClient.java
@@ -230,6 +230,6 @@ } public void setLoggedIn(boolean b) { - loggedIn = false; + loggedIn = b; } }