Skip to content

Commit 04a7652

Browse files
authored
Update registrator.dart (#511)
Fixes #506
1 parent fe8848a commit 04a7652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/registrator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class Registrator {
206206

207207
expires ??= _expires;
208208

209-
expires = num.tryParse(expires) ?? 0;
209+
expires = num.tryParse(expires.toString()) ?? 0;
210210

211211
if (expires < MIN_REGISTER_EXPIRES) {
212212
expires = MIN_REGISTER_EXPIRES;

0 commit comments

Comments
 (0)