summaryrefslogtreecommitdiff
path: root/src/operator-idle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-idle.cc')
-rw-r--r--src/operator-idle.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/operator-idle.cc b/src/operator-idle.cc
index ff95dbf..a278139 100644
--- a/src/operator-idle.cc
+++ b/src/operator-idle.cc
@@ -115,7 +115,8 @@ Operator::ProcessResult IdleOperator::process(Depot &depot, Request &command)
Session &session = Session::getInstance();
#ifdef HAVE_FNOTIFY
if (waitForNotification) {
- bincClient << "* BYE Timeout after " << session.timeout() << " seconds of inactivity." << endl;
+ bincClient << "* BYE Timeout after " << session.timeout() << " seconds of inactivity."
+ << endl;
session.setState(Session::LOGOUT);
close(newfd);
close(curfd);
@@ -124,7 +125,8 @@ Operator::ProcessResult IdleOperator::process(Depot &depot, Request &command)
#endif
if (time(nullptr) > startTime + IDLE_TIMEOUT)
{
- bincClient << "* BYE Timeout after " << IDLE_TIMEOUT << " seconds of inactivity." << endl;
+ bincClient << "* BYE Timeout after " << IDLE_TIMEOUT << " seconds of inactivity."
+ << endl;
session.setState(Session::LOGOUT);
return NOTHING;
}
@@ -167,8 +169,8 @@ Operator::ProcessResult IdleOperator::process(Depot &depot, Request &command)
// scan for changes in the mailbox and report to the client.
if (!pendingUpdates(mailbox,
- PendingUpdates::EXPUNGE | PendingUpdates::EXISTS | PendingUpdates::RECENT
- | PendingUpdates::FLAGS,
+ PendingUpdates::EXPUNGE | PendingUpdates::EXISTS
+ | PendingUpdates::RECENT | PendingUpdates::FLAGS,
true))
{
Session &session = Session::getInstance();