Skip to content

Commit fdf50d2

Browse files
committed
Allow any negative timeout value to set subscription auto-renewal; fix typo in authors file.
1 parent bccb377 commit fdf50d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

AUTHORS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Principle authors:
2+
Principal authors:
33
* Stephen Sinclair <[email protected]>
44
* Joseph Malloch <[email protected]>
55

src/monitor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ void mapper_monitor_subscribe(mapper_monitor mon, const char *device_name,
192192
int subscribe_flags, int timeout)
193193
{
194194
mapper_db_device found = 0;
195-
if (timeout == -1) {
195+
if (timeout < 0) {
196196
// special case: autorenew subscription lease
197197
// first check if subscription already exists
198198
mapper_monitor_subscription s = mon->subscriptions;

0 commit comments

Comments
 (0)