Fix: Ensure MFC and Web remote desktop sessions are fully independent
This commit is contained in:
@@ -156,7 +156,13 @@ bool ScreenHandler::init()
|
||||
|
||||
void ScreenHandler::start(IOCPClient* client, uint64_t clientID)
|
||||
{
|
||||
if (m_running) return;
|
||||
// If already running, just send TOKEN_BITMAPINFO again
|
||||
// This allows server to create additional dialogs (MFC can open while Web is active)
|
||||
if (m_running) {
|
||||
NSLog(@"ScreenHandler already running, sending TOKEN_BITMAPINFO for new dialog");
|
||||
sendBitmapInfo();
|
||||
return;
|
||||
}
|
||||
|
||||
m_client = client;
|
||||
m_clientID = clientID;
|
||||
|
||||
Reference in New Issue
Block a user