MCPcopy Create free account
hub / github.com/danielpaulus/quicktime_video_hack / waitForSigInt

Function waitForSigInt

main.go:436–446  ·  view source on GitHub ↗
(stopSignalChannel chan interface{})

Source from the content-addressed store, hash-verified

434}
435
436func waitForSigInt(stopSignalChannel chan interface{}) {
437 c := make(chan os.Signal, 1)
438 signal.Notify(c, os.Interrupt)
439 go func() {
440 for sig := range c {
441 log.Debugf("Signal received: %s", sig)
442 var stopSignal interface{}
443 stopSignalChannel <- stopSignal
444 }
445 }()
446}
447
448func checkDeviceIsPaired(device screencapture.IosDevice) {
449 dev, err := ios.GetDevice(screencapture.Correct24CharacterSerial(device.SerialNumber))

Callers 2

startWithConsumerFunction · 0.85
startWithConsumerDumpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected