()
| 175 | } |
| 176 | |
| 177 | private OtpErlangObject receiveRPC() throws IOException, OtpErlangException { |
| 178 | OtpErlangObject result = OtpUtil.receiveRPC(mbox); |
| 179 | |
| 180 | // hack to support certain projects, don't ask... |
| 181 | if(result instanceof OtpErlangTuple) { |
| 182 | if(new OtpErlangAtom("add_locator").equals(((OtpErlangTuple) result).elementAt(0))) { |
| 183 | result = receiveRPC(); |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | return result; |
| 188 | } |
| 189 | |
| 190 | private static byte[] loadBeamFile() throws IOException { |
| 191 | InputStream resourceAsStream = OtpUtil.class.getResourceAsStream(ERLYBERLY_BEAM_PATH); |
no test coverage detected