mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Compare commits
1 Commits
sqlite-jdb
...
1712-write
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8711e4782d |
@@ -166,6 +166,9 @@ class DuplexOutgoingSession implements SyncSession, EventListener {
|
|||||||
dataToFlush = true;
|
dataToFlush = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Write any records that were already in the queue
|
||||||
|
ThrowingRunnable<IOException> task;
|
||||||
|
while ((task = writerTasks.poll()) != null) task.run();
|
||||||
streamWriter.sendEndOfStream();
|
streamWriter.sendEndOfStream();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
LOG.info("Interrupted while waiting for a record to write");
|
LOG.info("Interrupted while waiting for a record to write");
|
||||||
|
|||||||
@@ -95,6 +95,9 @@ class SimplexOutgoingSession implements SyncSession, EventListener {
|
|||||||
if (task == CLOSE) break;
|
if (task == CLOSE) break;
|
||||||
task.run();
|
task.run();
|
||||||
}
|
}
|
||||||
|
// Write any records that were already in the queue
|
||||||
|
ThrowingRunnable<IOException> task;
|
||||||
|
while ((task = writerTasks.poll()) != null) task.run();
|
||||||
streamWriter.sendEndOfStream();
|
streamWriter.sendEndOfStream();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
LOG.info("Interrupted while waiting for a record to write");
|
LOG.info("Interrupted while waiting for a record to write");
|
||||||
|
|||||||
Reference in New Issue
Block a user