mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-03-04 15:51:00 +00:00
[host] service restarts now restart capture interfaces
This commit is contained in:
parent
9ef9f60505
commit
9b7f54fa35
1 changed files with 13 additions and 0 deletions
|
@ -183,6 +183,19 @@ bool Service::Process()
|
|||
// check if the client has flagged a restart
|
||||
if (f & KVMFR_HEADER_FLAG_RESTART)
|
||||
{
|
||||
DEBUG_INFO("Restart Requested");
|
||||
if (!m_capture->ReInitialize())
|
||||
{
|
||||
DEBUG_ERROR("ReInitialize Failed");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (m_capture->GetMaxFrameSize() > m_frameSize)
|
||||
{
|
||||
DEBUG_ERROR("Maximum frame size of %zd bytes excceds maximum space available", m_capture->GetMaxFrameSize());
|
||||
return false;
|
||||
}
|
||||
|
||||
INTERLOCKED_AND8((volatile char *)flags, ~(KVMFR_HEADER_FLAG_RESTART));
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue