aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/ncp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ncpd/ncp.cc')
-rw-r--r--ncpd/ncp.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/ncpd/ncp.cc b/ncpd/ncp.cc
index 2391586..90b188b 100644
--- a/ncpd/ncp.cc
+++ b/ncpd/ncp.cc
@@ -51,8 +51,11 @@ ncp::~ncp()
void ncp::
reset() {
- for (int i = 0; i < 8; i++)
+ for (int i = 0; i < 8; i++) {
+ if (channelPtr[i])
+ channelPtr[i]->terminateWhenAsked();
channelPtr[i] = NULL;
+ }
failed = false;
gotLinkChan = false;
l->reset();