1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine code for hooks and http core.

This commit is contained in:
winlin 2015-12-29 18:33:02 +08:00
parent 79fdc4e766
commit f516636448
12 changed files with 144 additions and 43 deletions

View file

@ -147,7 +147,7 @@ int main(int argc, char** argv)
goto rtmp_destroy;
}
if ((timestamp - basetime) > duration * 1000) {
if (timestamp > basetime && (timestamp - basetime) > duration * 1000) {
srs_human_trace("duration exceed, terminate.");
goto rtmp_destroy;
}