Skip to content

Commit

Permalink
Process disconnect events before connecting to new server
Browse files Browse the repository at this point in the history
  • Loading branch information
thorvald committed Jan 7, 2010
1 parent 62b97b5 commit 2e36c68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mumble/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ void MainWindow::openUrl(const QUrl &url) {
if (g.sh && g.sh->isRunning()) {
on_qaServerDisconnect_triggered();
g.sh->wait();
QCoreApplication::instance()->processEvents();
}

rtLast = MumbleProto::Reject_RejectType_None;
Expand Down Expand Up @@ -726,6 +727,7 @@ void MainWindow::on_qaServerConnect_triggered() {
if (g.sh && g.sh->isRunning() && res == QDialog::Accepted) {
on_qaServerDisconnect_triggered();
g.sh->wait();
QCoreApplication::instance()->processEvents();
}

if (res == QDialog::Accepted) {
Expand Down
1 change: 1 addition & 0 deletions src/mumble/ServerHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ void ServerHandler::run() {
while (! cptr.unique()) {
msleep(100);
}
delete qtsSock;
}

void ServerHandler::setSslErrors(const QList<QSslError> &errors) {
Expand Down

0 comments on commit 2e36c68

Please sign in to comment.