Permalink
Browse files

Don't fail if payload is missing

  • Loading branch information...
1 parent 68ca923 commit 5a41b9c2bfdedd6bd5db1978c4332425486ac4c9 Donovan Hide committed Apr 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/command.cc
View
@@ -87,8 +87,8 @@ namespace superfastmatch{
}
status_=status;
if (status==Finished){
- return registry_->getPayloadDB()->remove(toString(payload_id_)) &&\
- registry_->getQueueDB()->set(getKey(),"");
+ registry_->getPayloadDB()->remove(toString(payload_id_));
+ return registry_->getQueueDB()->set(getKey(),"");
}
return registry_->getQueueDB()->set(getKey(),toString(payload_id_));
}

0 comments on commit 5a41b9c

Please sign in to comment.