remove future from trip reader after closing
All checks were successful
continuous-integration/drone/push Build is passing

Future was not removed from the reader instance after close() has been
called, so re-opening was not possible. Remove the instance after
termination allows calling open() again.
This commit is contained in:
2020-10-14 09:40:59 +02:00
parent 69f9e0124a
commit b80da71014
3 changed files with 15 additions and 7 deletions

View File

@ -124,6 +124,8 @@ public class AsyncUraTripReader implements AutoCloseable {
} catch (TimeoutException e) {
// Task failed to finish within 1 second.
future.cancel(true);
} finally {
future = null;
}
}