@scrypted/server 0.7.42 → 0.7.43

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.

Potentially problematic release.


This version of @scrypted/server might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.7.42",
3
+ "version": "0.7.43",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@mapbox/node-pre-gyp": "^1.0.10",
@@ -651,9 +651,7 @@ async def plugin_async_main(loop: AbstractEventLoop, rpcTransport: rpc_reader.Rp
651
651
  try:
652
652
  await readLoop()
653
653
  finally:
654
- if type(rpcTransport) == rpc_reader.RpcConnectionTransport:
655
- r: rpc_reader.RpcConnectionTransport = rpcTransport
656
- r.executor.shutdown()
654
+ os._exit(0)
657
655
 
658
656
  def main(rpcTransport: rpc_reader.RpcTransport):
659
657
  loop = asyncio.new_event_loop()
@@ -675,6 +673,9 @@ def plugin_main(rpcTransport: rpc_reader.RpcTransport):
675
673
  from gi.repository import GLib, Gst
676
674
  Gst.init(None)
677
675
 
676
+ # can't remember why starting the glib main loop is necessary.
677
+ # maybe gstreamer on linux and other things needed it?
678
+ # seems optional on other platforms.
678
679
  loop = GLib.MainLoop()
679
680
 
680
681
  worker = threading.Thread(target=main, args=(rpcTransport,), name="asyncio-main")