Revision: 8297
http://playerstage.svn.sourceforge.net/playerstage/?rev=8297&view=rev
Author: thjc
Date: 2009-10-18 13:43:01 +0000 (Sun, 18 Oct 2009)
Log Message:
-----------
Applied patch 2854278: Exit on empty config file
Modified Paths:
--------------
code/player/trunk/server/server.cc
Modified: code/player/trunk/server/server.cc
===================================================================
--- code/player/trunk/server/server.cc 2009-10-17 09:04:54 UTC (rev 8296)
+++ code/player/trunk/server/server.cc 2009-10-18 13:43:01 UTC (rev 8297)
@@ -220,6 +220,12 @@
cf->WarnUnused();
+ if (deviceTable->Size() == 0)
+ {
+ PLAYER_ERROR("No devices read in configuration file. Is it
correct?\nExiting...");
+ exit(-1);
+ }
+
if(deviceTable->StartAlwaysonDrivers() != 0)
{
PLAYER_ERROR("failed to start alwayson drivers");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit