Skip to content

Commit aba1cc5

Browse files
committed
reset self.tpc_phase in _finish() to resolve known errors in both issues repoze#31 and repoze#30
1 parent 73eedb5 commit aba1cc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

repoze/sendmail/delivery.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def _finish(self, final_state):
102102
if self.transaction is None:
103103
raise ValueError("Not in a transaction")
104104
self.state = final_state
105+
self.tpc_phase = 0
105106

106107
def commit(self, trans):
107108
if self.transaction is None:

0 commit comments

Comments
 (0)