Skip to content

Commit

Permalink
Only initialize protocol buffers meta data if protocol buffers is
Browse files Browse the repository at this point in the history
actually enabled (which by default it is not)
  • Loading branch information
rubendel committed Nov 28, 2019
1 parent 21d0609 commit 3399e1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BimServer/src/org/bimserver/BimServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,6 @@ public void pluginBundleUninstalled(PluginBundle pluginBundle) {

cleanupStaleData();

protocolBuffersMetaData = new ProtocolBuffersMetaData();
protocolBuffersMetaData.load(servicesMap, ProtocolBuffersBimServerClientFactory.class);

serverInfoManager.init(this);

webModuleManager = new WebModuleManager(this);
Expand Down Expand Up @@ -1228,6 +1225,9 @@ private void initDatabaseDependantItems() throws BimserverDatabaseException {
Integer protocolBuffersPort = getServerSettingsCache().getServerSettings().getProtocolBuffersPort();
if (protocolBuffersPort >= 1 && protocolBuffersPort <= 65535) {
try {
protocolBuffersMetaData = new ProtocolBuffersMetaData();
protocolBuffersMetaData.load(servicesMap, ProtocolBuffersBimServerClientFactory.class);

protocolBuffersServer = new ProtocolBuffersServer(protocolBuffersMetaData, serviceFactory, servicesMap, protocolBuffersPort);
protocolBuffersServer.start();
} catch (Exception e) {
Expand Down

0 comments on commit 3399e1a

Please sign in to comment.