Unlink the state file while progressing.
[doldaconnect.git] / config / tthsum.c
index 18481c5..796b94a 100644 (file)
@@ -618,6 +618,7 @@ int main(int argc, char **argv)
                }
                memcpy(&tth.block, dbuf, tth.offset);
                fclose(state);
+               unlink(statefile);
            }
        }
        while(1) {