Skip to content

Commit

Permalink
changes to config. deleted timer test in client.java. this caused the…
Browse files Browse the repository at this point in the history
… application to fail.
  • Loading branch information
Matthew Goldsmith committed Jun 22, 2018
1 parent e11dedf commit e84663d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
23 changes: 1 addition & 22 deletions osc-project-6/Exchange/src/osdi/client/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,28 +128,7 @@ public synchronized void logon() {
try {
initiator.start();

try {
Timer timer = new Timer();
timer.schedule(new TimerTask() {
public void run() {
//stop(true);
client.logout();
}
}, 10000);

try {
shutdownLatch.await();
} catch (InterruptedException e) {
}

if (failed) {
String message = "Heartbeat not sent";
log.error(message);
throw new RuntimeError(message);
}
} finally {
initiator.stop();
}

initiatorStarted = true;

} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ FIXTrackerCachedObjects=50
JdbcURL=jdbc:mysql://localhost:3306/quickfix
JdbcUser=fiximulator
JdbcPassword=fiximulator
JdbcDriver=com.mysql.jdbc.Driver
JdbcDriver=com.mysql.jdbc.Driver
UseDataDictionary=Y
[SESSION]
FileLogPath=logs
OnBehalfOfSubID=DESK
Expand Down

0 comments on commit e84663d

Please sign in to comment.