scriptsdk / CSharp-ScriptSDK-Legacy

ScriptSDK is an advanced extension written in .NET. The framework is based on a local tcp socket protocol library written by maxwell and extend the provided architecture by additional methods and handlers.
GNU General Public License v3.0
9 stars 11 forks source link

Infinite loop in constructor #7

Closed drabadan closed 6 years ago

drabadan commented 8 years ago

while (!Win32.PeekMessage(out msg, 0, peekvalue, peekvalue, Win32.PM_REMOVE)) { Thread.Sleep(10); }

is it ok to have such thing in constructor Stealth()? Is there a way to get infinite sleep?

Crome696 commented 8 years ago

This is part of maxwells code, however as far i understand it waits for a packet reply from stealth client so if that not reply, api cant communicate anyways.

Maxwellwr commented 6 years ago

This is NOT an infinite loop. It's just waiting for a response from Stealth with a TCP port number. If we can not get an answer, we will not be able to work. Maybe we should add a timeout to this code

Crome696 commented 6 years ago

This is linked to your merge request @Maxwellwr I close the issue for now.