Server - Added bac to mark zero priced slots as erroring
[tpg/opendispense2.git] / src / server / main.c
index d336b77..590e197 100644 (file)
@@ -151,7 +151,8 @@ int main(int argc, char *argv[])
        
        Server_Start();
        
-       pthread_kill(gTimerThread, SIGKILL);
+       if(gTimerThread)
+               pthread_kill(gTimerThread, SIGKILL);
 
        return 0;
 }
@@ -236,6 +237,7 @@ int InitSerial(const char *File, int BaudRate)
        
        switch(BaudRate)
        {
+       case 1200:      baud = B1200;   break;
        case 9600:      baud = B9600;   break;
        default:        close(fd);      return -1;
        }

UCC git Repository :: git.ucc.asn.au