Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
just return an already created SC instead of bailing out
  • Loading branch information
FROGGS committed Jul 18, 2014
1 parent d181feb commit 6d4ea16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -3699,7 +3699,7 @@ public static String sha1(String str) throws NoSuchAlgorithmException, Unsupport
}
public static SixModelObject createsc(String handle, ThreadContext tc) {
if (tc.gc.scs.containsKey(handle))
throw ExceptionHandling.dieInternal(tc, "SC with handle " + handle + " already exists");
return tc.gc.scRefs.get(handle);

SerializationContext sc = new SerializationContext(handle);
tc.gc.scs.put(handle, sc);
Expand Down

0 comments on commit 6d4ea16

Please sign in to comment.