Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(core): don't continue when the tox file is corrupted
Browse files Browse the repository at this point in the history
  • Loading branch information
sudden6 committed Apr 4, 2017
1 parent 8028281 commit 20db8b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ void Core::makeTox(QByteArray savedata)
break;

case TOX_ERR_NEW_LOAD_BAD_FORMAT:
qWarning() << "failed to parse Tox save data";
break;
qCritical() << "failed to parse Tox save data";
emit failedToStart();
return;

case TOX_ERR_NEW_PORT_ALLOC:
if (Settings::getInstance().getEnableIPv6()) {
Expand Down

0 comments on commit 20db8b7

Please sign in to comment.