From 7eb938b05d0ad1be2eab9dbbc67e9d754e0bb85d Mon Sep 17 00:00:00 2001 From: kondelin Date: Wed, 27 Aug 2014 06:37:30 +0000 Subject: [PATCH] Refs #5231. Protocol change. Added check for messages received by the peer. git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@30146 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/interop/stubs/InteropResource.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.simantics.interop/src/org/simantics/interop/stubs/InteropResource.java b/org.simantics.interop/src/org/simantics/interop/stubs/InteropResource.java index 4ad0056..af29831 100644 --- a/org.simantics.interop/src/org/simantics/interop/stubs/InteropResource.java +++ b/org.simantics.interop/src/org/simantics/interop/stubs/InteropResource.java @@ -1,5 +1,6 @@ package org.simantics.interop.stubs; +import org.simantics.db.RequestProcessor; import org.simantics.db.Resource; import org.simantics.db.ReadGraph; import org.simantics.db.request.Read; @@ -72,7 +73,7 @@ public class InteropResource { return ret; } - public static InteropResource getInstance(Session session) throws DatabaseException { + public static InteropResource getInstance(RequestProcessor session) throws DatabaseException { InteropResource ret = session.peekService(InteropResource.class); if(ret == null) { ret = session.syncRequest(new Read() { -- 2.47.1