<div dir="ltr"><div><div>I must be missing something with the logic in 0.27 mythshutdown.<br><br></div>My MBE is recording (encoder 14), my SBE (encoder 18) is not and there are no upcoming recordings on the SBE.  I run mythshutdown on the SBE and it returns Recording in progress...<br>
<br></div>But I don&#39;t understand why.  Seems like since the SBE isn&#39;t recording and should be allowed to shutdown<br><div><div><div>Looks like mythshutdown is blindly checking all encoders instead of the just the encoder on the BE its being run on:<br>
<br>2014-04-11 18:56:18.793603 D  MSqlQuery::exec(DBManager1) SELECT cardid FROM capturecard ORDER BY cardid &lt;&lt;&lt;&lt; Returns 6 row(s)<br>2014-04-11 18:56:18.793645 D  MSqlQuery::next(DBManager1) Result: &quot;cardid = 8&quot;<br>
2014-04-11 18:56:18.793703 D  MSqlQuery::next(DBManager1) Result: &quot;cardid = 14&quot;<br>2014-04-11 18:56:18.793718 D  MSqlQuery::next(DBManager1) Result: &quot;cardid = 15&quot;<br>2014-04-11 18:56:18.793727 D  MSqlQuery::next(DBManager1) Result: &quot;cardid = 16&quot;<br>
2014-04-11 18:56:18.793735 D  MSqlQuery::next(DBManager1) Result: &quot;cardid = 17&quot;<br>2014-04-11 18:56:18.793744 D  MSqlQuery::next(DBManager1) Result: &quot;cardid = 18&quot;<br>2014-04-11 18:56:18.793870 I  MythSocket(18bd820:17): write -&gt; 17 35      QUERY_REMOTEENCODER 8[]:[]GET_STATE<br>
2014-04-11 18:56:18.795022 I  MythSocket(18bd820:17): read  &lt;- 17 1       0<br>2014-04-11 18:56:18.795150 I  MythSocket(18bd820:17): write -&gt; 17 36      QUERY_REMOTEENCODER 14[]:[]GET_STATE<br>2014-04-11 18:56:18.795512 I  MythSocket(18bd820:17): read  &lt;- 17 1       7<br>
<br><br></div><div>Full log is here: <a href="http://pastebin.com/MZMwLSgr">http://pastebin.com/MZMwLSgr</a><br><br></div><div>More than happy to work on patch if it would help...<br></div><div><br></div><div>Thanks<br>Dave<br>
</div></div></div></div>