diff options
-rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java b/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java index f11a9cde9520..b6a003de0eb9 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java +++ b/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java @@ -136,7 +136,12 @@ public final class RemotePrintDocument { mState = STATE_CANCELED; notifyUpdateCanceled(); } - runPendingCommand(); + if (mNextCommand != null) { + runPendingCommand(); + } else { + // The update was not performed, hence the spec is stale + mUpdateSpec.reset(); + } } } }; |