Skip to content

Commit

Permalink
scide: SingleInstanceGuard - prevent unnecessary warning
Browse files Browse the repository at this point in the history
No need to flush() the QLocalSocket before waitForBytesWritten(),
or else an unnecessary warning may be posted if flush() has already
written all the pending data.
(cherry picked from commit 47e7f99)
  • Loading branch information
jleben committed Nov 24, 2012
1 parent 435b53a commit 2a4dd56
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion editors/sc-ide/core/main.cpp
Expand Up @@ -132,7 +132,6 @@ bool SingleInstanceGuard::tryConnect(QStringList const & arguments)

stream << QString("open");
stream << canonicalArguments;
socket->flush();
if (!socket->waitForBytesWritten(300))
qWarning("SingleInstanceGuard: writing data to another IDE instance timed out");

Expand Down

0 comments on commit 2a4dd56

Please sign in to comment.