fix alert bug introduced when adding support for event=paused

This commit is contained in:
Arvid Norberg 2010-09-25 17:48:51 +00:00
parent c341f15f71
commit b1de30ffae
1 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,8 @@ namespace libtorrent {
std::string tracker_announce_alert::message() const
{
const static char* event_str[] = {"none", "completed", "started", "stopped"};
const static char* event_str[] = {"none", "completed", "started", "stopped", "paused"};
TORRENT_ASSERT_VAL(event < sizeof(event_str)/sizeof(event_str), event);
return tracker_alert::message() + " sending announce (" + event_str[event] + ")";
}