Skip to content

Commit

Permalink
[jsscripting] Call super methods from their overrides
Browse files Browse the repository at this point in the history
Reference openhab#13924 (comment).

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Dec 15, 2022
1 parent 088d8a2 commit 3fb2e19
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,20 @@ protected void beforeInvocation() {
} catch (ScriptException e) {
LOGGER.error("Could not inject global script", e);
}

super.beforeInvocation();
}

@Override
protected Object afterInvocation(Object obj) {
lock.unlock();
return obj;
return super.afterInvocation(obj);
}

@Override
protected Exception afterThrowsInvocation(Exception e) {
lock.unlock();
return e;
return super.afterThrowsInvocation(e);
}

@Override
Expand Down

0 comments on commit 3fb2e19

Please sign in to comment.