changes from stephanie
This commit is contained in:
@@ -148,17 +148,7 @@ void caServerI::removeClient (casStrmClient *pClient)
|
||||
//
|
||||
void caServerI::connectCB (casIntfOS &intf)
|
||||
{
|
||||
casStreamOS *pNewClient;
|
||||
|
||||
try {
|
||||
pNewClient = intf.newStreamClient (*this);
|
||||
if (!pNewClient) {
|
||||
throw S_cas_noMemory;
|
||||
}
|
||||
}
|
||||
catch (...) {
|
||||
epicsPrintf ("Attempt to create entry for new client failed (C++ exception)\n");
|
||||
}
|
||||
intf.newStreamClient (*this);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
@@ -173,6 +173,7 @@ casStreamOS *casIntfIO::newStreamClient(caServerI &cas) const
|
||||
args.sock = newSock;
|
||||
pOS = new casStreamOS(cas, args);
|
||||
if (!pOS) {
|
||||
errMessage(S_cas_noMemory, "unable to create data structures for a new client");
|
||||
socket_close(newSock);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user