8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 325e9cb commit a95d15fCopy full SHA for a95d15f
src/backend/replication/walreceiver.c
@@ -29,7 +29,7 @@
29
*
30
31
* IDENTIFICATION
32
- * $PostgreSQL: pgsql/src/backend/replication/walreceiver.c,v 1.7 2010/03/21 00:17:58 petere Exp $
+ * $PostgreSQL: pgsql/src/backend/replication/walreceiver.c,v 1.8 2010/04/13 08:16:09 mha Exp $
33
34
*-------------------------------------------------------------------------
35
*/
@@ -330,7 +330,8 @@ WalRcvDie(int code, Datum arg)
330
SpinLockRelease(&walrcv->mutex);
331
332
/* Terminate the connection gracefully. */
333
- walrcv_disconnect();
+ if (walrcv_disconnect != NULL)
334
+ walrcv_disconnect();
335
}
336
337
/* SIGHUP: set flag to re-read config file at next convenient time */
0 commit comments