[mythtv-commits] [MythTV/mythtv] 8e206e: Only send a single SSDP byebye message.

Stuart Auchterlonie noreply at github.com
Tue Dec 7 22:17:43 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 8e206e3d05095baab30de53a4dcece0806e010ed
      https://github.com/MythTV/mythtv/commit/8e206e3d05095baab30de53a4dcece0806e010ed
  Author: Stuart Auchterlonie <stuarta at mythtv.org>
  Date:   2021-12-07 (Tue, 07 Dec 2021)

  Changed paths:
    M mythtv/libs/libmythupnp/upnptasknotify.cpp

  Log Message:
  -----------
  Only send a single SSDP byebye message.

There are 8 different UPnP byebye messages that get sent
at shutdown of the upnp/ssdp stack.

The UPnP Notification task would repeat the same message
after a delay of up to 250ms.

The repeated message is now skipped on shutdown improving
the shutdown speed.

However the shutdown sequence is called twice. Once from
UPnp::Cleanup() and once in the SSDP destructor. This is
not addressed in this commit.

This improves shutdown time by around 4 seconds in total.

Refs #274




More information about the mythtv-commits mailing list