diff --git a/c_micasad/communication/UnixCommunication.cs b/c_micasad/communication/UnixCommunication.cs index ad5732ef..9980c578 100644 --- a/c_micasad/communication/UnixCommunication.cs +++ b/c_micasad/communication/UnixCommunication.cs @@ -79,23 +79,25 @@ namespace sscs.communication CSSSLogger.ExecutionTrace(this); try { - UnixFileSystemInfo sockFileInfo = new UnixFileInfo(socketFileName); - UnixUserInfo sockFileOwner = sockFileInfo.OwnerUser; + UnixFileSystemInfo sockFileInfo = new UnixFileInfo(socketFileName); + UnixUserInfo sockFileOwner = sockFileInfo.OwnerUser; - // check if ROOT is the owner of the file: /tmp/.novellCASA - if (sockFileOwner.UserId != 0) - { - File.Delete(socketFileName); - } + // check if ROOT is the owner of the file: /tmp/.novellCASA + if (sockFileOwner.UserId != 0) + { + File.Delete(socketFileName); + } - listeningSocket.Bind(sockEndPoint); - listeningSocket.Listen(50); } catch(Exception e) { CSSSLogger.ExpLog(e.ToString()); } - while(true) + + listeningSocket.Bind(sockEndPoint); + listeningSocket.Listen(50); + + while(true) { try {