Indenting - no code changes
This commit is contained in:
parent
56571d5879
commit
970bf59cc2
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Id: socket.c,v 1.6 2007/01/15 11:41:46 schmirl Exp $
|
* $Id: socket.c,v 1.7 2007/01/15 11:45:48 schmirl Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tools/select.h>
|
#include <tools/select.h>
|
||||||
|
@ -114,12 +114,12 @@ bool cClientSocket::CheckConnection(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Connect(StreamdevClientSetup.RemoteIp, StreamdevClientSetup.RemotePort)){
|
if (!Connect(StreamdevClientSetup.RemoteIp, StreamdevClientSetup.RemotePort)){
|
||||||
static time_t lastTime = 0;
|
static time_t lastTime = 0;
|
||||||
if (time(NULL) - lastTime > MINLOGREPEAT) {
|
if (time(NULL) - lastTime > MINLOGREPEAT) {
|
||||||
esyslog("ERROR: Streamdev: Couldn't connect to %s:%d: %s",
|
esyslog("ERROR: Streamdev: Couldn't connect to %s:%d: %s",
|
||||||
(const char*)StreamdevClientSetup.RemoteIp,
|
(const char*)StreamdevClientSetup.RemoteIp,
|
||||||
StreamdevClientSetup.RemotePort, strerror(errno));
|
StreamdevClientSetup.RemotePort, strerror(errno));
|
||||||
lastTime = time(NULL);
|
lastTime = time(NULL);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue