1
0
Fork 0
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:
Tristan B. Kildaire 2020-04-28 18:56:18 +02:00
parent 49e4317867
commit ccb7870aa9
2 changed files with 12 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1,6 @@
finally
{
/* Always close the socket */
handlerSocket.close();
debugPrint("Closed UNIX domain socket to handler");
}