From 4717e6f029f31e202385a1d75e66800272dbe99c Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 2 Feb 2015 20:08:04 -0500 Subject: [PATCH] Call End when commands are interrupted --- Commands/CloseCollector.cpp | 1 + Commands/CollectTote.cpp | 1 + Commands/Compressor/StartCompressing.cpp | 1 + Commands/Compressor/StopCompressing.cpp | 1 + Commands/Drive.cpp | 1 + Commands/OpenCollector.cpp | 1 + Commands/ReleaseTote.cpp | 1 + 7 files changed, 7 insertions(+) diff --git a/Commands/CloseCollector.cpp b/Commands/CloseCollector.cpp index b415152..92b1362 100644 --- a/Commands/CloseCollector.cpp +++ b/Commands/CloseCollector.cpp @@ -14,4 +14,5 @@ bool CloseCollector::IsFinished(){ void CloseCollector::End(){ } void CloseCollector::Interrupted(){ + End(); } diff --git a/Commands/CollectTote.cpp b/Commands/CollectTote.cpp index f28c974..ce8ed62 100644 --- a/Commands/CollectTote.cpp +++ b/Commands/CollectTote.cpp @@ -14,4 +14,5 @@ bool CollectTote::IsFinished(){ void CollectTote::End(){ } void CollectTote::Interrupted(){ + End(); } diff --git a/Commands/Compressor/StartCompressing.cpp b/Commands/Compressor/StartCompressing.cpp index b71d975..50425b5 100644 --- a/Commands/Compressor/StartCompressing.cpp +++ b/Commands/Compressor/StartCompressing.cpp @@ -14,4 +14,5 @@ bool StartCompressing::IsFinished(){ void StartCompressing::End(){ } void StartCompressing::Interrupted(){ + End(); } diff --git a/Commands/Compressor/StopCompressing.cpp b/Commands/Compressor/StopCompressing.cpp index 009ae4f..4ef05fb 100644 --- a/Commands/Compressor/StopCompressing.cpp +++ b/Commands/Compressor/StopCompressing.cpp @@ -14,4 +14,5 @@ bool StopCompressing::IsFinished(){ void StopCompressing::End(){ } void StopCompressing::Interrupted(){ + End(); } diff --git a/Commands/Drive.cpp b/Commands/Drive.cpp index d4dfdbd..7c82425 100644 --- a/Commands/Drive.cpp +++ b/Commands/Drive.cpp @@ -30,4 +30,5 @@ bool Drive::IsFinished(){ void Drive::End(){ } void Drive::Interrupted(){ + End(); } diff --git a/Commands/OpenCollector.cpp b/Commands/OpenCollector.cpp index bbd00c5..d3a6133 100644 --- a/Commands/OpenCollector.cpp +++ b/Commands/OpenCollector.cpp @@ -14,4 +14,5 @@ bool OpenCollector::IsFinished(){ void OpenCollector::End(){ } void OpenCollector::Interrupted(){ + End(); } diff --git a/Commands/ReleaseTote.cpp b/Commands/ReleaseTote.cpp index 21b6e2a..e1b1e89 100644 --- a/Commands/ReleaseTote.cpp +++ b/Commands/ReleaseTote.cpp @@ -14,4 +14,5 @@ bool ReleaseTote::IsFinished(){ void ReleaseTote::End(){ } void ReleaseTote::Interrupted(){ + End(); }