Fix SerialPort.getFlowControlMode() infinite recursion (#4007)

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>
This commit is contained in:
Wouter Born
2024-01-03 12:15:41 +01:00
committed by GitHub
parent 58a106d36d
commit 564d6e673e
2 changed files with 2 additions and 2 deletions
@@ -206,7 +206,7 @@ public class SerialPortImpl implements SerialPort {
@Override @Override
public int getFlowControlMode() { public int getFlowControlMode() {
return getFlowControlMode(); return sp.getFlowControlMode();
} }
@Override @Override
@@ -206,7 +206,7 @@ public class RxTxSerialPort implements SerialPort {
@Override @Override
public int getFlowControlMode() { public int getFlowControlMode() {
return getFlowControlMode(); return sp.getFlowControlMode();
} }
@Override @Override