integrated changes from main repository

This commit is contained in:
Guenter Obiltschnig
2007-01-04 08:01:43 +00:00
parent 431807f25e
commit 3941965bce
6 changed files with 36 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
//
// SocketNotifier.cpp
//
// $Id: //poco/1.3/Net/src/SocketNotifier.cpp#1 $
// $Id: //poco/1.3/Net/src/SocketNotifier.cpp#2 $
//
// Library: Net
// Package: Reactor
@@ -87,9 +87,20 @@ void SocketNotifier::removeObserver(SocketReactor* pReactor, const Poco::Abstrac
void SocketNotifier::dispatch(SocketNotification* pNotification)
{
static Socket nullSocket;
pNotification->setSocket(_socket);
pNotification->duplicate();
_nc.postNotification(pNotification);
try
{
_nc.postNotification(pNotification);
}
catch (...)
{
pNotification->setSocket(nullSocket);
throw;
}
pNotification->setSocket(nullSocket);
}