Skip to content

Commit

Permalink
Fix SerialPort.getFlowControlMode() infinite recursion (#4007)
Browse files Browse the repository at this point in the history
An infinite recursion would occur when calling this method.
I did not find any add-ons using this method but that could be due to this bug.

Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn committed Jan 3, 2024
1 parent e3180c4 commit f71b062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public void notifyOnCarrierDetect(boolean enable) {

@Override
public int getFlowControlMode() {
return getFlowControlMode();
return sp.getFlowControlMode();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public void notifyOnCarrierDetect(boolean enable) {

@Override
public int getFlowControlMode() {
return getFlowControlMode();
return sp.getFlowControlMode();
}

@Override
Expand Down

0 comments on commit f71b062

Please sign in to comment.