Skip to content

Commit

Permalink
When a replay stream finishes, close the stream
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmk committed Oct 14, 2016
1 parent ac96e3d commit f30a2bd
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,15 @@ public void run() {
while (!shuttingDown.get() && !Thread.interrupted()) {
try {
if(is == null) {
if (disconnectedSinceTime == null){
disconnectedSinceTime = new AtomicLong(System.currentTimeMillis());
}
if (disconnectedSinceTime == null) {
disconnectedSinceTime = new AtomicLong(System.currentTimeMillis());
}
if (streamURI.toString().contains("replay")) {
// When a replay stream is finished, close the stream
doClose();
} else {
reconnect();
}
}
if(is != null) {
processor.process(is,stats);
Expand Down

0 comments on commit f30a2bd

Please sign in to comment.