mirror of
https://github.com/yv1ing/ShotRDP.git
synced 2025-09-16 15:10:57 +08:00
基本适应win7,win10,win server 08,win server 12,win server 16的截图
This commit is contained in:
12
common/context.go
Normal file
12
common/context.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package common
|
||||
|
||||
import "context"
|
||||
|
||||
func Opened(_ctx context.Context) bool {
|
||||
select {
|
||||
case <-_ctx.Done():
|
||||
return false
|
||||
default:
|
||||
return true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user