aboutsummaryrefslogtreecommitdiffstats
path: root/src/fodtmf-send.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2024-10-06 13:37:04 +0200
committerMattias Andrée <m@maandree.se>2024-10-06 13:37:04 +0200
commit62a8599a9ae7b6351668999815e8d1db3097a111 (patch)
treeb3e43d1e063c7a5fdb950ab95343c60f142daccd /src/fodtmf-send.c
parentfuture directions (diff)
downloadfodtmf-62a8599a9ae7b6351668999815e8d1db3097a111.tar.gz
fodtmf-62a8599a9ae7b6351668999815e8d1db3097a111.tar.bz2
fodtmf-62a8599a9ae7b6351668999815e8d1db3097a111.tar.xz
Update e-mail
Signed-off-by: Mattias Andrée <m@maandree.se>
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;
}