Close UNIX domain socket after handler send-recv
This commit is contained in:
parent
49e4317867
commit
ccb7870aa9
|
@ -125,6 +125,12 @@ public final class BesterConnection : Thread
|
||||||
/* TODO: Implement error handling here and send a repsonse back (Issue: https://github.com/besterprotocol/besterd/issues/10) */
|
/* TODO: Implement error handling here and send a repsonse back (Issue: https://github.com/besterprotocol/besterd/issues/10) */
|
||||||
debugPrint("Error communicating with message handler");
|
debugPrint("Error communicating with message handler");
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
/* Always close the socket */
|
||||||
|
handlerSocket.close();
|
||||||
|
debugPrint("Closed UNIX domain socket to handler");
|
||||||
|
}
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
/* Always close the socket */
|
||||||
|
handlerSocket.close();
|
||||||
|
debugPrint("Closed UNIX domain socket to handler");
|
||||||
|
}
|
Loading…
Reference in New Issue