Abort on M_SKIP since it incorreclty marks items as sent, and thus they are not sent again
This commit is contained in:
parent
2456402246
commit
693e88bc01
@ -1018,10 +1018,13 @@ final class Binkp extends BaseProtocol
|
|||||||
* @param string $buf
|
* @param string $buf
|
||||||
* @return bool
|
* @return bool
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
|
* @todo We need to not add more files this session if a node skips a file
|
||||||
|
* @todo This incorrectly records the mail/file as sent and thus it is not sent again
|
||||||
*/
|
*/
|
||||||
private function M_skip(string $buf): bool
|
private function M_skip(string $buf): bool
|
||||||
{
|
{
|
||||||
Log::info(sprintf('%s:+ Remote request to skip the file for now [%s]',self::LOGKEY,$buf));
|
Log::debug(sprintf('%s:+ Remote request to skip the file for now [%s]',self::LOGKEY,$buf));
|
||||||
|
throw new \Exception('We got a skip, but we dont handle it properly');
|
||||||
|
|
||||||
if ($file = $this->file_parse($buf)) {
|
if ($file = $this->file_parse($buf)) {
|
||||||
if ($this->send->nameas
|
if ($this->send->nameas
|
||||||
|
Loading…
Reference in New Issue
Block a user