Commit c016de42 authored by Davis King's avatar Davis King

Made the linker's destructor behavior a little more reasonable.

parent 9e7d0d0f
...@@ -154,6 +154,10 @@ namespace dlib ...@@ -154,6 +154,10 @@ namespace dlib
error = true; error = true;
break; break;
} }
else if (status == SHUTDOWN)
{
b.shutdown();
}
if (status <= 0) if (status <= 0)
{ {
...@@ -278,6 +282,10 @@ namespace dlib ...@@ -278,6 +282,10 @@ namespace dlib
error = true; error = true;
break; break;
} }
else if (status == SHUTDOWN)
{
a.shutdown();
}
if (status <= 0) if (status <= 0)
...@@ -315,7 +323,7 @@ namespace dlib ...@@ -315,7 +323,7 @@ namespace dlib
{ {
p.service_connection_error_mutex.lock(); p.service_connection_error_mutex.lock();
p.service_connection_error = true; p.service_connection_error = true;
p.service_connection_error_mutex.lock(); p.service_connection_error_mutex.unlock();
} }
// signal that this function is ending // signal that this function is ending
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment