aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 60313d2..f807cb6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -115,10 +115,12 @@ int fn_connect(void) {
}
void fn_disconnect(void) {
- // Restore old PROCEED interrupt.
- PIA.pactl &= ~1; // disable interrupts
- OS.vprced=old_vprced;
- PIA.pactl |= old_enabled;
+ nclose(conf->url);
+
+ // Restore old PROCEED interrupt.
+ PIA.pactl &= ~1; // disable interrupts
+ OS.vprced=old_vprced;
+ PIA.pactl |= old_enabled;
}
void init_channels(void) {