git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8642
91ce42f0-d328-0410-95d8-
f526ca767f89
int stat = 0;
while (m_sock) {
for (;;) {
int stat = 0;
while (m_sock) {
for (;;) {
stat = m_sock->wait_data_intr(0, 50000);
if (stat > 0) {
break;
stat = m_sock->wait_data_intr(0, 50000);
if (stat > 0) {
break;
m_console->messagesPending(false);
}
}
m_console->messagesPending(false);
}
}
+ if (!m_sock) {
+ return BNET_HARDEOF;
+ }
m_sock->msg[0] = 0;
stat = sock_read();
if (stat >= 0) {
m_sock->msg[0] = 0;
stat = sock_read();
if (stat >= 0) {