commit 29d6fdff4565f815ee00b18de12b53aea0162f30
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Jun 25 17:05:35 2025 +0200
No need to assert when one is quitting LyX
---
src/ServerSocket.cpp | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/ServerSocket.cpp b/src/ServerSocket.cpp
index 3544235bba..f8dcf54d54 100644
--- a/src/ServerSocket.cpp
+++ b/src/ServerSocket.cpp
@@ -25,11 +25,8 @@
#include "support/debug.h"
#include "support/environment.h"
#include "support/FileName.h"
-#include "support/lassert.h"
#include "support/socktools.h"
-#include <boost/assert.hpp>
-
#include <cerrno>
#include <cstring>
#include <ostream>
@@ -80,8 +77,8 @@ ServerSocket::ServerSocket(FileName const & addr)
ServerSocket::~ServerSocket()
{
if (fd_ != -1) {
- BOOST_ASSERT (theApp());
- theApp()->unregisterSocketCallback(fd_);
+ if (theApp())
+ theApp()->unregisterSocketCallback(fd_);
if (::close(fd_) != 0)
lyxerr << "lyx: Server socket " << fd_
<< " IO error on closing: " << strerror(errno)
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs