mirror of
https://github.com/besterprotocol/besterd
synced 2023-12-13 21:00:32 +01:00
Close UNIX domain socket after handler send-recv
This commit is contained in:
parent
49e4317867
commit
ccb7870aa9
2 changed files with 12 additions and 0 deletions
|
@ -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) */
|
||||
debugPrint("Error communicating with message handler");
|
||||
}
|
||||
finally
|
||||
{
|
||||
/* Always close the socket */
|
||||
handlerSocket.close();
|
||||
debugPrint("Closed UNIX domain socket to handler");
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
|
6
source/temp.d
Normal file
6
source/temp.d
Normal file
|
@ -0,0 +1,6 @@
|
|||
finally
|
||||
{
|
||||
/* Always close the socket */
|
||||
handlerSocket.close();
|
||||
debugPrint("Closed UNIX domain socket to handler");
|
||||
}
|
Loading…
Reference in a new issue