Skip to content

Commit dd82c5e

Browse files
Copilotchrjohn
andcommitted
Use checkSessionTimerRunning() and remove debug logging
Co-authored-by: chrjohn <[email protected]>
1 parent dac5858 commit dd82c5e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

quickfixj-core/src/main/java/quickfix/mina/SessionConnector.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,7 @@ private String getLogSuffix(SessionID sessionID, IoSession protocolSession) {
312312

313313
protected void startSessionTimer() {
314314
// Check if a session timer is already running to avoid creating multiple timers
315-
if (sessionTimerFuture != null && !sessionTimerFuture.isDone()) {
316-
log.debug("SessionTimer already running, not creating a new one");
315+
if (checkSessionTimerRunning()) {
317316
return;
318317
}
319318
Runnable timerTask = new SessionTimerTask();

0 commit comments

Comments
 (0)