mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-13 15:27:21 +00:00
[idd] transport: avoid redundant frame rebuilds
This commit is contained in:
@@ -983,8 +983,6 @@ void CTransportManager::RetryEntry(Entry& entry, uint64_t now,
|
|||||||
|
|
||||||
{
|
{
|
||||||
CSRWExclusiveLock entryLock(entry.lock);
|
CSRWExclusiveLock entryLock(entry.lock);
|
||||||
const bool frameService =
|
|
||||||
(entry.config.services & TRANSPORT_SERVICE_FRAME) != 0;
|
|
||||||
entry.transport.reset();
|
entry.transport.reset();
|
||||||
entry.directMemory = DirectFrameBufferMemory {};
|
entry.directMemory = DirectFrameBufferMemory {};
|
||||||
entry.directMemoryValid = false;
|
entry.directMemoryValid = false;
|
||||||
@@ -1000,8 +998,6 @@ void CTransportManager::RetryEntry(Entry& entry, uint64_t now,
|
|||||||
entry.frameAbsent = false;
|
entry.frameAbsent = false;
|
||||||
entry.serviceRetryAt = 0;
|
entry.serviceRetryAt = 0;
|
||||||
Seq::Inc(entry.epoch);
|
Seq::Inc(entry.epoch);
|
||||||
if (frameService)
|
|
||||||
BumpFrameRev();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OpenEntry(entry) != OpenResult::SUCCESS)
|
if (OpenEntry(entry) != OpenResult::SUCCESS)
|
||||||
|
|||||||
Reference in New Issue
Block a user