From f31cbb8a8ca5c2f1e1497d18db59849b403f5b23 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 12 Oct 2001 22:47:06 +0000 Subject: [PATCH] fixed to match new dbEvent interface --- src/db/dbSubscriptionIO.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/db/dbSubscriptionIO.cpp b/src/db/dbSubscriptionIO.cpp index 23130d3c0..a002b85e4 100644 --- a/src/db/dbSubscriptionIO.cpp +++ b/src/db/dbSubscriptionIO.cpp @@ -50,13 +50,13 @@ dbSubscriptionIO::dbSubscriptionIO ( dbServiceIO &serviceIO, dbChannelIO &chanIO } db_post_single_event ( this->es ); + + db_event_enable ( this->es ); } dbSubscriptionIO::~dbSubscriptionIO () { - if ( this->es ) { - db_cancel_event ( this->es ); - } + this->unsubscribe (); } void dbSubscriptionIO::destroy () @@ -64,7 +64,6 @@ void dbSubscriptionIO::destroy () delete this; } -// lock should be applied void dbSubscriptionIO::unsubscribe () { if ( this->es ) {