@livedesk/client 0.1.73 → 0.1.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,7 +51,9 @@ final class LiveDeskScreenCaptureKitEncoder: NSObject, SCStreamOutput, SCStreamD
51
51
  try await stream.startCapture()
52
52
 
53
53
  fputs("LiveDeskSCK started displayIndex=\(displayIndex) displayID=\(display.displayID) size=\(width)x\(height) fps=\(fps)\n", stderr)
54
- RunLoop.main.run()
54
+ while !Task.isCancelled {
55
+ try await Task.sleep(nanoseconds: 1_000_000_000)
56
+ }
55
57
  }
56
58
 
57
59
  private func createCompressionSession() throws {
@@ -51,7 +51,9 @@ final class LiveDeskScreenCaptureKitEncoder: NSObject, SCStreamOutput, SCStreamD
51
51
  try await stream.startCapture()
52
52
 
53
53
  fputs("LiveDeskSCK started displayIndex=\(displayIndex) displayID=\(display.displayID) size=\(width)x\(height) fps=\(fps)\n", stderr)
54
- RunLoop.main.run()
54
+ while !Task.isCancelled {
55
+ try await Task.sleep(nanoseconds: 1_000_000_000)
56
+ }
55
57
  }
56
58
 
57
59
  private func createCompressionSession() throws {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livedesk/client",
3
- "version": "0.1.73",
3
+ "version": "0.1.74",
4
4
  "description": "LiveDesk local remote client",
5
5
  "type": "module",
6
6
  "bin": {