commit a8aa3167eb58157f95d26bbfa47f34d5d5e35e6d
parent baa96fabfde1be03ff37c1b68bcc1dc4318f9791
Author: Dominik Schmidt <das1993@hotmail.com>
Date: Mon, 6 Nov 2017 22:12:42 +0100
Remove unix controlsocket if it already exists.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/bot.d b/src/bot.d
@@ -363,6 +363,9 @@ struct Bot{
info("Connecting to IRC");
ircClient.connect(ircAddress);
+ if(controlPath.exists()){
+ remove(controlPath);
+ }
controlSocket.bind(controlAddress);
controlSocket.listen(10);
}