Skip to content

Commit f9c9041

Browse files
committed
revert changes for serialization of FailedConnectionAttempt, because it isn't needed for ASAPAndroid integration
1 parent a4029e4 commit f9c9041

3 files changed

Lines changed: 6 additions & 103 deletions

File tree

src/main/java/net/sharksystem/hub/BasicHubConnectionManager.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ protected void syncLists() {
6868
}
6969
}
7070
if(recordedOldAttempt != null) this.failedConnectionAttempts.remove(recordedOldAttempt);
71-
this.failedConnectionAttempts.add(new FailedConnectionAttemptImpl(failedConnection, lastConnectionAttempt));
71+
this.failedConnectionAttempts.add(new HubConnectionManager.FailedConnectionAttempt() {
72+
@Override
73+
public HubConnectorDescription getHubConnectorDescription() { return failedConnection; }
74+
@Override
75+
public long getTimeStamp() { return lastConnectionAttempt; }
76+
});
7277
}
7378
}
7479

src/main/java/net/sharksystem/hub/FailedConnectionAttemptImpl.java

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/test/java/net/sharksystem/hub/FailedConnectionAttemptImplTest.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)