MCPcopy Create free account
hub / github.com/CCob/lsarelayx / DoPassiveMode

Method DoPassiveMode

client/Program.cs:164–184  ·  view source on GitHub ↗
(int requestPID)

Source from the content-addressed store, hash-verified

162 }
163
164 static bool DoPassiveMode(int requestPID) {
165
166 bool doPassive = passive;
167
168 if (!doPassive) {
169 if (processActivityTracker.ContainsKey(requestPID)) {
170
171 if (processActivityTracker[requestPID].IsRunning && processActivityTracker[requestPID].ElapsedMilliseconds < 1000) {
172 doPassive = true;
173 } else {
174 processActivityTracker[requestPID].Reset();
175 }
176
177 } else {
178 var timer = new Stopwatch();
179 processActivityTracker[requestPID] = timer;
180 }
181 }
182
183 return doPassive;
184 }
185
186 static void TriggerAuthTimer(int requestPID) {
187 if (processActivityTracker.ContainsKey(requestPID)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected