This commit is contained in:
@@ -164,6 +164,11 @@ public abstract class Sncp {
|
|||||||
Field ts = service.getClass().getDeclaredField(FIELDPREFIX + "_messageagent");
|
Field ts = service.getClass().getDeclaredField(FIELDPREFIX + "_messageagent");
|
||||||
ts.setAccessible(true);
|
ts.setAccessible(true);
|
||||||
ts.set(service, messageAgent);
|
ts.set(service, messageAgent);
|
||||||
|
if (service instanceof WebSocketNode) {
|
||||||
|
Field c = WebSocketNode.class.getDeclaredField("messageAgent");
|
||||||
|
c.setAccessible(true);
|
||||||
|
c.set(service, messageAgent);
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(service + " not found " + FIELDPREFIX + "_messageagent");
|
throw new RuntimeException(service + " not found " + FIELDPREFIX + "_messageagent");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user