aboutsummaryrefslogtreecommitdiffstats
path: root/src/fodtmf-send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fodtmf-send.c')
-rw-r--r--src/fodtmf-send.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fodtmf-send.c b/src/fodtmf-send.c
index b841e1f..0c3709e 100644
--- a/src/fodtmf-send.c
+++ b/src/fodtmf-send.c
@@ -1,5 +1,5 @@
/**
- * Copyright © 2015 Mattias Andrée (maandree@member.fsf.org)
+ * Copyright © 2015 Mattias Andrée (m@maandree.se)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -490,14 +490,14 @@ int main(int argc, char* argv[])
if (errno)
perror(argv0);
cleanup:
- if (output_fd >= 0)
- snd_pcm_close(sound_handle);
/* Mark aborted transmission. */
if (rc)
{
send_byte_with_ecc(CHAR_CANCEL);
send_byte_with_ecc(-CHAR_CANCEL);
}
+ if (output_fd >= 0)
+ snd_pcm_close(sound_handle);
return rc;
}